forked from XiaoMi/mobile-ai-bench
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathWORKSPACE
71 lines (64 loc) · 2.23 KB
/
WORKSPACE
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
workspace(name = "aibench")
new_http_archive(
name = "gtest",
build_file = "third_party/googletest/googletest.BUILD",
sha256 = "f3ed3b58511efd272eb074a3a6d6fb79d7c2e6a0e374323d1e6bcbcc1ef141bf",
strip_prefix = "googletest-release-1.8.0",
urls = [
"https://cnbj1.fds.api.xiaomi.com/mace/third-party/googletest/googletest-release-1.8.0.zip",
"https://github.com/google/googletest/archive/release-1.8.0.zip",
],
)
new_http_archive(
name = "ncnn",
build_file = "third_party/ncnn/ncnn.BUILD",
sha256 = "9beeb52117f62091e68feca60f3cf5ec5e727d0d166908fdee7505d3b3db6353",
strip_prefix = "ncnn-20180704",
type = "zip",
urls = [
"https://cnbj1.fds.api.xiaomi.com/aibench/third_party/ncnn-20180704.zip",
"https://codeload.github.com/Tencent/ncnn/zip/20180704",
],
)
# You need to comment following new_http_archive and uncomment following
# new_local_repository to benchmark SNPE
new_http_archive(
name = "snpe",
build_file = "third_party/snpe/snpe.BUILD",
sha256 = "b11780e5e7f591e916c69bdface4a1ef75b0c19f7b43c868bd62c0f3747d3fbb",
strip_prefix = "snpe-1.15.0",
urls = [
"https://cnbj1-fds.api.xiaomi.net/aibench/third_party/snpe-1.15.0.zip",
],
)
# You need to uncomment following new_local_repository and comment foregoing
# new_http_archive to benchmark SNPE
# new_local_repository(
# name = "snpe",
# build_file = "third_party/snpe/snpe.BUILD",
# path = "/path/to/snpe-1.15.0",
# )
http_archive(
# v2.2.0 + fix of include path
name = "com_github_gflags_gflags",
sha256 = "16903f6bb63c00689eee3bf7fb4b8f242934f6c839ce3afc5690f71b712187f9",
strip_prefix = "gflags-30dbc81fb5ffdc98ea9b14b1918bfe4e8779b26e",
urls = [
"https://cnbj1.fds.api.xiaomi.com/mace/third-party/gflags/gflags-30dbc81fb5ffdc98ea9b14b1918bfe4e8779b26e.zip",
"https://github.com/gflags/gflags/archive/30dbc81fb5ffdc98ea9b14b1918bfe4e8779b26e.zip",
],
)
bind(
name = "gflags",
actual = "@com_github_gflags_gflags//:gflags",
)
bind(
name = "gflags_nothreads",
actual = "@com_github_gflags_gflags//:gflags_nothreads",
)
# Set up Android NDK
android_ndk_repository(
name = "androidndk",
# Android 5.0
api_level = 21,
)