Skip to content

Commit 7986a8a

Browse files
author
Anurag Dixit
authored
Merge pull request #3 from narendasan/anuragd/aarch64-jetpack-support
Small changes to the aarch64 PR
2 parents 29a941a + 9a6cccd commit 7986a8a

File tree

5 files changed

+13
-9
lines changed

5 files changed

+13
-9
lines changed

WORKSPACE

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -99,16 +99,12 @@ http_archive(
9999
#new_local_repository(
100100
# name = "libtorch",
101101
# path = "/usr/local/lib/python3.6/dist-packages/torch",
102-
# # Use below for aarch64
103-
# #path = "/home/nvidia/.local/lib/python3.6/site-packages/torch",
104102
# build_file = "third_party/libtorch/BUILD"
105103
#)
106104

107105
#new_local_repository(
108106
# name = "libtorch_pre_cxx11_abi",
109107
# path = "/usr/local/lib/python3.6/dist-packages/torch",
110-
# # Use below for aarch64
111-
# #path = "/home/nvidia/.local/lib/python3.6/site-packages/torch",
112108
# build_file = "third_party/libtorch/BUILD"
113109
#)
114110

tests/core/converters/BUILD

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -86,5 +86,3 @@ test_suite(
8686
":test_stack"
8787
]
8888
)
89-
90-

tests/util/BUILD

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@ cc_library(
2323
"//core/conversion",
2424
"//core/util:prelude",
2525
"//cpp/api:trtorch",
26+
"@tensorrt//:nvinfer"
2627
] + select({
2728
":use_pre_cxx11_abi": [
2829
"@libtorch_pre_cxx11_abi//:libtorch",

third_party/cuda/BUILD

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ cc_library(
1212
name = "cudart",
1313
srcs = select({
1414
":aarch64_linux": [
15-
"targets/aarch64-linux-gnu/lib/libcudart.so",
15+
"targets/aarch64-linux/lib/libcudart.so",
1616
],
1717
"//conditions:default": [
1818
"targets/x86_64-linux/lib/libcudart.so",
@@ -30,7 +30,7 @@ cc_library(
3030
name = "nvToolsExt",
3131
srcs = select({
3232
":aarch64_linux": [
33-
"targets/aarch64-linux-gnu/lib/libnvToolsExt.so.1",
33+
"targets/aarch64-linux/lib/libnvToolsExt.so.1",
3434
],
3535
"//conditions:default": [
3636
"targets/x86_64-linux/lib/libnvToolsExt.so.1",
@@ -42,7 +42,7 @@ cc_library(
4242
name = "cuda",
4343
srcs = select({
4444
":aarch64_linux": glob([
45-
"targets/aarch64-linux-gnu/lib/**/lib*.so",
45+
"targets/aarch64-linux/lib/**/lib*.so",
4646
]),
4747
"//conditions:default": glob([
4848
"targets/x86_64-linux/lib/**/lib*.so",

toolchains/BUILD

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
package(default_visibility = ["//visibility:public"])
2+
3+
platform(
4+
name = "aarch64_linux",
5+
constraint_values = [
6+
"@platforms//os:linux",
7+
"@platforms//cpu:aarch64",
8+
],
9+
)

0 commit comments

Comments
 (0)