Skip to content

Commit 922ad63

Browse files
author
andi4191
committed
Updated build rules for test modules
Signed-off-by: andi4191 <[email protected]>
1 parent ea2eee4 commit 922ad63

File tree

4 files changed

+6
-29
lines changed

4 files changed

+6
-29
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -173,7 +173,7 @@ bazel build //:libtrtorch --compilation_mode=dbg
173173

174174
### Native compilation on NVIDIA Jetson AGX
175175
``` shell
176-
bazel build //:libtrtorch --distdir third_party/distdir/aarch64-linux-gnu --config=pre_cxx11_abi_aarch64
176+
bazel build //:libtrtorch --cpu=aarch64 --distdir third_party/distdir/aarch64-linux-gnu
177177
```
178178

179179
A tarball with the include files and library can then be found in bazel-bin

tests/core/converters/converter_test.bzl

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@ def converter_test(name, visibility=None):
99
"//core",
1010
"@googletest//:gtest_main",
1111
] + select({
12-
":aarch64": ["@libtorch_aarch64//:libtorch"],
1312
":use_pre_cxx11_abi": ["@libtorch_pre_cxx11_abi//:libtorch"],
1413
"//conditions:default": ["@libtorch//:libtorch"],
1514
}),

tests/modules/BUILD

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,6 @@ cc_library(
7474
"//tests/util",
7575
"@googletest//:gtest_main",
7676
] + select({
77-
":aarch64" : ["@libtorch_aarch64//:libtorch"],
7877
":use_pre_cxx11_abi": ["@libtorch_pre_cxx11_abi//:libtorch"],
7978
"//conditions:default": ["@libtorch//:libtorch"],
8079
}),

tests/util/BUILD

Lines changed: 5 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -7,21 +7,6 @@ config_setting(
77
}
88
)
99

10-
config_setting(
11-
name = "use_pre_cxx11_abi_aarch64",
12-
values = {
13-
"define": "abi=pre_cxx11_abi",
14-
"cpu" : "aarch64"
15-
}
16-
)
17-
18-
config_setting(
19-
name = "aarch64",
20-
values = {
21-
"cpu" : "aarch64"
22-
}
23-
)
24-
2510
cc_library(
2611
name = "util",
2712
hdrs = [
@@ -37,18 +22,12 @@ cc_library(
3722
"//core/conversion",
3823
"//core/util:prelude",
3924
"//cpp/api:trtorch",
40-
] +select({
41-
":aarch64": ["@libtorch_aarch64//:libtorch",
42-
"@libtorch_aarch64//:caffe2",
43-
"@tensorrt_aarch64//:nvinfer"],
25+
] + select({
4426
":use_pre_cxx11_abi": ["@libtorch_pre_cxx11_abi//:libtorch",
45-
"@libtorch_pre_cxx11_abi//:caffe2",
46-
"@tensorrt//:nvinfer"],
47-
":use_pre_cxx11_abi_aarch64": ["@libtorch_pre_cxx11_abi_aarch64//:libtorch",
48-
"@libtorch_pre_cxx11_abi_aarch64//:caffe2",
49-
"@tensorrt_aarch64//:nvinfer"],
27+
"@libtorch_pre_cxx11_abi//:caffe2"],
5028
"//conditions:default": ["@libtorch//:libtorch",
51-
"@libtorch//:caffe2",
52-
"@tensorrt//:nvinfer"],
29+
"@libtorch//:caffe2"],
30+
}) + select({
31+
"//conditions:default": ["@tensorrt//:nvinfer"],
5332
}),
5433
)

0 commit comments

Comments
 (0)