blob: a83aaee99ef8e17fdb6164c16dc0e793b65cbe1e [file] [log] [blame]
workspace(name = "xnnpack")
load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive")
# Bazel rule definitions
http_archive(
name = "rules_cc",
strip_prefix = "rules_cc-master",
urls = ["https://github.com/bazelbuild/rules_cc/archive/master.zip"],
)
# Google Test framework, used by most unit-tests.
http_archive(
name = "com_google_googletest",
strip_prefix = "googletest-master",
urls = ["https://github.com/google/googletest/archive/master.zip"],
)
# Google Benchmark library, used in micro-benchmarks.
http_archive(
name = "com_google_benchmark",
strip_prefix = "benchmark-master",
urls = ["https://github.com/google/benchmark/archive/master.zip"],
)
# FP16 library, used for half-precision conversions
http_archive(
name = "FP16",
strip_prefix = "FP16-3c54eacb74f6f5e39077300c5564156c424d77ba",
sha256 = "0d56bb92f649ec294dbccb13e04865e3c82933b6f6735d1d7145de45da700156",
urls = [
"https://github.com/Maratyszcza/FP16/archive/3c54eacb74f6f5e39077300c5564156c424d77ba.zip",
],
build_file = "@//third_party:FP16.BUILD",
)
# FXdiv library, used for repeated integer division by the same factor
http_archive(
name = "FXdiv",
strip_prefix = "FXdiv-b408327ac2a15ec3e43352421954f5b1967701d1",
sha256 = "ab7dfb08829bee33dca38405d647868fb214ac685e379ec7ef2bebcd234cd44d",
urls = ["https://github.com/Maratyszcza/FXdiv/archive/b408327ac2a15ec3e43352421954f5b1967701d1.zip"],
)
# pthreadpool library, used for parallelization
http_archive(
name = "pthreadpool",
strip_prefix = "pthreadpool-6525d8bb736b323eb4df9e4f3afdd3a8458d1a20",
sha256 = "af8c518b6ec65dca216143ddf5ef9d2e6b133123f9a47a24841ef447c5d91bd1",
urls = ["https://github.com/Maratyszcza/pthreadpool/archive/6525d8bb736b323eb4df9e4f3afdd3a8458d1a20.zip"],
)
# clog library, used for logging
http_archive(
name = "clog",
strip_prefix = "cpuinfo-d5e37adf1406cf899d7d9ec1d317c47506ccb970",
sha256 = "3f2dc1970f397a0e59db72f9fca6ff144b216895c1d606f6c94a507c1e53a025",
urls = [
"https://github.com/pytorch/cpuinfo/archive/d5e37adf1406cf899d7d9ec1d317c47506ccb970.tar.gz",
],
build_file = "@//third_party:clog.BUILD",
)
# cpuinfo library, used for detecting processor characteristics
http_archive(
name = "cpuinfo",
strip_prefix = "cpuinfo-2b14e445016dd46f7de821cdf3093e2823b9ab21",
sha256 = "599ec5036fd225de01a866e7226ba6a5bca480d841ff0a0bede9138db7a655be",
urls = [
"https://github.com/pytorch/cpuinfo/archive/2b14e445016dd46f7de821cdf3093e2823b9ab21.zip",
],
build_file = "@//third_party:cpuinfo.BUILD",
patches = ["@//third_party:cpuinfo.patch"],
)
# psimd library, used for fallback 128-bit SIMD micro-kernels
http_archive(
name = "psimd",
strip_prefix = "psimd-85427dd4c8521cc037a1ffa6fcd25c55fafc8a00",
sha256 = "db23c2bc4a58d6f40c181797e43103300edac7cf9d286ca81590543f66ab95d2",
urls = ["https://github.com/Maratyszcza/psimd/archive/85427dd4c8521cc037a1ffa6fcd25c55fafc8a00.zip"],
build_file = "@//third_party:psimd.BUILD",
)
# Ruy library, used to benchmark against
http_archive(
name = "ruy",
strip_prefix = "ruy-9f53ba413e6fc879236dcaa3e008915973d67a4f",
sha256 = "fe8345f521bb378745ebdd0f8c5937414849936851d2ec2609774eb2d7098e54",
urls = [
"https://github.com/google/ruy/archive/9f53ba413e6fc879236dcaa3e008915973d67a4f.zip",
],
)
# Android NDK location and version is auto-detected from $ANDROID_NDK_HOME environment variable
android_ndk_repository(name = "androidndk")
# Android SDK location and API is auto-detected from $ANDROID_HOME environment variable
android_sdk_repository(name = "androidsdk")