-
Notifications
You must be signed in to change notification settings - Fork 375
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'master' into ibilinear
- Loading branch information
Showing
1,047 changed files
with
70,224 additions
and
33,573 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,104 @@ | ||
## MODULE.bazel | ||
module( | ||
name = "xnnpack", | ||
) | ||
|
||
# Bazel rule definitions | ||
bazel_dep(name = "rules_cc", version = "0.1.0") | ||
bazel_dep(name = "rules_python", version = "1.0.0") | ||
|
||
pip = use_extension("@rules_python//python/extensions:pip.bzl", "pip") | ||
pip.parse( | ||
hub_name = "pip", | ||
python_version = "3.11", | ||
requirements_lock = "//:requirements_lock.txt", | ||
) | ||
use_repo(pip, "pip") | ||
|
||
# Bazel Skylib. | ||
bazel_dep(name = "bazel_skylib", version = "1.7.1") | ||
|
||
# Bazel Platforms | ||
bazel_dep(name = "platforms", version = "0.0.10") | ||
|
||
# TODO: some (most? all?) of the http_archive() calls below could become bazel_dep() calls, | ||
# but it would require verifying that the semver provided by the Bazel registry matches the hash | ||
# that we expect in CMake; it's not clear that it is a big win to do so given the modest | ||
# complexity of our deps, so I'm leaving it like this for now to ensure that the Bazel and CMake | ||
# builds are using identical dependencies. | ||
|
||
http_archive = use_repo_rule("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive") | ||
|
||
# LINT.IfChange(googletest) | ||
# Google Test framework, used by most unit-tests. | ||
http_archive( | ||
name = "com_google_googletest", | ||
sha256 = "648b9430fca63acc68c59ee98f624dcbcd9c24ea6b278c306ab6b7f49f62034a", | ||
strip_prefix = "googletest-d144031940543e15423a25ae5a8a74141044862f", | ||
urls = ["https://github.com/google/googletest/archive/d144031940543e15423a25ae5a8a74141044862f.zip"], | ||
) | ||
# LINT.ThenChange(cmake/DownloadGoogleTest.cmake) | ||
|
||
# LINT.IfChange(benchmark) | ||
# Google Benchmark library, used in micro-benchmarks. | ||
http_archive( | ||
name = "com_google_benchmark", | ||
sha256 = "1ba14374fddcd9623f126b1a60945e4deac4cdc4fb25a5f25e7f779e36f2db52", | ||
strip_prefix = "benchmark-d2a8a4ee41b923876c034afb939c4fc03598e622", | ||
urls = ["https://github.com/google/benchmark/archive/d2a8a4ee41b923876c034afb939c4fc03598e622.zip"], | ||
) | ||
# LINT.ThenChange(cmake/DownloadGoogleBenchmark.cmake) | ||
|
||
# LINT.IfChange(FXdiv) | ||
# FXdiv library, used for repeated integer division by the same factor | ||
http_archive( | ||
name = "FXdiv", | ||
sha256 = "ab7dfb08829bee33dca38405d647868fb214ac685e379ec7ef2bebcd234cd44d", | ||
strip_prefix = "FXdiv-b408327ac2a15ec3e43352421954f5b1967701d1", | ||
urls = ["https://github.com/Maratyszcza/FXdiv/archive/b408327ac2a15ec3e43352421954f5b1967701d1.zip"], | ||
) | ||
# LINT.ThenChange(cmake/DownloadFXdiv.cmake) | ||
|
||
# LINT.IfChange(pthreadpool) | ||
# pthreadpool library, used for parallelization | ||
http_archive( | ||
name = "pthreadpool", | ||
sha256 = "9f1baba9e97df8abc792eeaa2a8f0e0d29e507db1b4c1a8210868c889eb449b5", | ||
strip_prefix = "pthreadpool-39df650e19d4f6382e246c29d6819b1ce6ee0b24", | ||
urls = ["https://github.com/google/pthreadpool/archive/39df650e19d4f6382e246c29d6819b1ce6ee0b24.zip"], | ||
) | ||
# LINT.ThenChange(cmake/DownloadPThreadPool.cmake) | ||
|
||
# LINT.IfChange(cpuinfo) | ||
# cpuinfo library, used for detecting processor characteristics | ||
http_archive( | ||
name = "cpuinfo", | ||
sha256 = "0edef1777a2cc6c43524cbabd7b631c34fcf8b7d9df96ec31785c029e9cec8ff", | ||
strip_prefix = "cpuinfo-ca156f7bc9109c552973414a63d310f76ef0cbf8", | ||
urls = [ | ||
"https://github.com/pytorch/cpuinfo/archive/ca156f7bc9109c552973414a63d310f76ef0cbf8.zip", | ||
], | ||
) | ||
# LINT.ThenChange(cmake/DownloadCpuinfo.cmake) | ||
|
||
# LINT.IfChange(kleidiai) | ||
# KleidiAI library, used for ARM microkernels. | ||
http_archive( | ||
name = "KleidiAI", | ||
sha256 = "8ba8cdb9f945941174d34d10eb4ad158ad1cbc1aef259de5ad992b0bbe85861f", | ||
strip_prefix = "kleidiai-7e8c4baf953227fa447a2f345e5d6491a504aa56", | ||
urls = [ | ||
"https://gitlab.arm.com/kleidi/kleidiai/-/archive/7e8c4baf953227fa447a2f345e5d6491a504aa56/kleidiai-7e8c4baf953227fa447a2f345e5d6491a504aa56.zip", | ||
], | ||
) | ||
# LINT.ThenChange(cmake/DownloadKleidiAI.cmake) | ||
|
||
# Ruy library, used to benchmark against | ||
http_archive( | ||
name = "ruy", | ||
sha256 = "fe8345f521bb378745ebdd0f8c5937414849936851d2ec2609774eb2d7098e54", | ||
strip_prefix = "ruy-9f53ba413e6fc879236dcaa3e008915973d67a4f", | ||
urls = [ | ||
"https://github.com/google/ruy/archive/9f53ba413e6fc879236dcaa3e008915973d67a4f.zip", | ||
], | ||
) |
Oops, something went wrong.