File tree Expand file tree Collapse file tree 4 files changed +6
-29
lines changed Expand file tree Collapse file tree 4 files changed +6
-29
lines changed Original file line number Diff line number Diff line change @@ -173,7 +173,7 @@ bazel build //:libtrtorch --compilation_mode=dbg
173
173
174
174
### Native compilation on NVIDIA Jetson AGX
175
175
``` 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
177
177
```
178
178
179
179
A tarball with the include files and library can then be found in bazel-bin
Original file line number Diff line number Diff line change @@ -9,7 +9,6 @@ def converter_test(name, visibility=None):
9
9
"//core" ,
10
10
"@googletest//:gtest_main" ,
11
11
] + select ({
12
- ":aarch64" : ["@libtorch_aarch64//:libtorch" ],
13
12
":use_pre_cxx11_abi" : ["@libtorch_pre_cxx11_abi//:libtorch" ],
14
13
"//conditions:default" : ["@libtorch//:libtorch" ],
15
14
}),
Original file line number Diff line number Diff line change @@ -74,7 +74,6 @@ cc_library(
74
74
"//tests/util" ,
75
75
"@googletest//:gtest_main" ,
76
76
] + select ({
77
- ":aarch64" : ["@libtorch_aarch64//:libtorch" ],
78
77
":use_pre_cxx11_abi" : ["@libtorch_pre_cxx11_abi//:libtorch" ],
79
78
"//conditions:default" : ["@libtorch//:libtorch" ],
80
79
}),
Original file line number Diff line number Diff line change @@ -7,21 +7,6 @@ config_setting(
7
7
}
8
8
)
9
9
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
-
25
10
cc_library (
26
11
name = "util" ,
27
12
hdrs = [
@@ -37,18 +22,12 @@ cc_library(
37
22
"//core/conversion" ,
38
23
"//core/util:prelude" ,
39
24
"//cpp/api:trtorch" ,
40
- ] + select ({
41
- ":aarch64" : ["@libtorch_aarch64//:libtorch" ,
42
- "@libtorch_aarch64//:caffe2" ,
43
- "@tensorrt_aarch64//:nvinfer" ],
25
+ ] + select ({
44
26
":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" ],
50
28
"//conditions:default" : ["@libtorch//:libtorch" ,
51
- "@libtorch//:caffe2" ,
52
- "@tensorrt//:nvinfer" ],
29
+ "@libtorch//:caffe2" ],
30
+ }) + select ({
31
+ "//conditions:default" : ["@tensorrt//:nvinfer" ],
53
32
}),
54
33
)
You can’t perform that action at this time.
0 commit comments