Marat Dukhan | 08c4a43 | 2019-10-03 09:29:21 -0700 | [diff] [blame] | 1 | workspace(name = "xnnpack") |
| 2 | |
| 3 | load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive") |
| 4 | |
| 5 | # Google Test framework, used by most unit-tests. |
| 6 | http_archive( |
| 7 | name = "com_google_googletest", |
| 8 | urls = ["https://github.com/google/googletest/archive/master.zip"], |
| 9 | strip_prefix = "googletest-master", |
| 10 | ) |
| 11 | |
| 12 | # Google Benchmark library, used in micro-benchmarks. |
| 13 | http_archive( |
| 14 | name = "com_google_benchmark", |
| 15 | urls = [ |
| 16 | "https://github.com/google/benchmark/archive/master.zip" |
| 17 | ], |
| 18 | strip_prefix = "benchmark-master", |
| 19 | build_file = "@//third_party:benchmark.BUILD", |
| 20 | ) |
| 21 | |
| 22 | # FP16 library, used for half-precision conversions |
| 23 | http_archive( |
| 24 | name = "FP16", |
| 25 | strip_prefix = "FP16-ba1d31f5eed2eb4a69e4dea3870a68c7c95f998f", |
| 26 | sha256 = "9764297a339ad73b0717331a2c3e9c42a52105cd04cab62cb160e2b4598d2ea6", |
| 27 | urls = [ |
| 28 | "https://github.com/Maratyszcza/FP16/archive/ba1d31f5eed2eb4a69e4dea3870a68c7c95f998f.tar.gz", |
| 29 | ], |
| 30 | build_file = "@//third_party:FP16.BUILD", |
| 31 | ) |
| 32 | |
| 33 | # FXdiv library, used for repeated integer division by the same factor |
| 34 | http_archive( |
| 35 | name = "FXdiv", |
| 36 | strip_prefix = "FXdiv-f8c5354679ec2597792bc70a9e06eff50c508b9a", |
| 37 | sha256 = "7d3215bea832fe77091ec5666200b91156df6724da1e348205078346325fc45e", |
| 38 | urls = [ |
| 39 | "https://github.com/Maratyszcza/FXdiv/archive/f8c5354679ec2597792bc70a9e06eff50c508b9a.tar.gz", |
| 40 | ], |
| 41 | build_file = "@//third_party:FXdiv.BUILD", |
| 42 | ) |
| 43 | |
| 44 | # pthreadpool library, used for parallelization |
| 45 | http_archive( |
| 46 | name = "pthreadpool", |
| 47 | strip_prefix = "pthreadpool-0e275fe56094626349c55a524ea8b71a85daa64b", |
| 48 | sha256 = "c2328fdf9e48ac9b928953bcbc442eb14402d393e4cfae0541581a3d39efca9d", |
| 49 | urls = [ |
| 50 | "https://github.com/Maratyszcza/pthreadpool/archive/0e275fe56094626349c55a524ea8b71a85daa64b.tar.gz", |
| 51 | ], |
| 52 | build_file = "@//third_party:pthreadpool.BUILD", |
| 53 | ) |
| 54 | |
| 55 | # clog library, used for logging |
| 56 | http_archive( |
| 57 | name = "clog", |
| 58 | strip_prefix = "cpuinfo-d5e37adf1406cf899d7d9ec1d317c47506ccb970", |
| 59 | sha256 = "3f2dc1970f397a0e59db72f9fca6ff144b216895c1d606f6c94a507c1e53a025", |
| 60 | urls = [ |
| 61 | "https://github.com/pytorch/cpuinfo/archive/d5e37adf1406cf899d7d9ec1d317c47506ccb970.tar.gz", |
| 62 | ], |
| 63 | build_file = "@//third_party:clog.BUILD", |
| 64 | ) |
| 65 | |
| 66 | # cpuinfo library, used for detecting processor characteristics |
| 67 | http_archive( |
| 68 | name = "cpuinfo", |
| 69 | strip_prefix = "cpuinfo-d5e37adf1406cf899d7d9ec1d317c47506ccb970", |
| 70 | sha256 = "3f2dc1970f397a0e59db72f9fca6ff144b216895c1d606f6c94a507c1e53a025", |
| 71 | urls = [ |
| 72 | "https://github.com/pytorch/cpuinfo/archive/d5e37adf1406cf899d7d9ec1d317c47506ccb970.tar.gz", |
| 73 | ], |
| 74 | build_file = "@//third_party:cpuinfo.BUILD", |
| 75 | ) |
| 76 | |
| 77 | # psimd library, used for fallback 128-bit SIMD micro-kernels |
| 78 | http_archive( |
| 79 | name = "psimd", |
| 80 | strip_prefix = "psimd-4f2c53947184b56f58607b9e777416bb63ebbde1", |
| 81 | sha256 = "7d1795ebf289af26e404cff5877c284775e491414cf41d7d99ab850ceaced458", |
| 82 | urls = [ |
| 83 | "https://github.com/Maratyszcza/psimd/archive/4f2c53947184b56f58607b9e777416bb63ebbde1.tar.gz", |
| 84 | ], |
| 85 | build_file = "@//third_party:psimd.BUILD", |
| 86 | ) |
| 87 | |
| 88 | # Android NDK location and version is auto-detected from $ANDROID_NDK_HOME environment variable |
| 89 | android_ndk_repository(name = "androidndk") |
| 90 | |
| 91 | # Android SDK location and API is auto-detected from $ANDROID_HOME environment variable |
| 92 | android_sdk_repository(name = "androidsdk") |