File tree 2 files changed +5
-1
lines changed
third_party/tensorrt/local
2 files changed +5
-1
lines changed Original file line number Diff line number Diff line change @@ -14,6 +14,9 @@ COPY . /workspace/TRTorch
14
14
RUN rm /workspace/TRTorch/WORKSPACE
15
15
COPY ./docker/WORKSPACE.cu11.docker /workspace/TRTorch/WORKSPACE
16
16
17
+ # Workaround for bazel expecting both static and shared versions, we only use shared libraries inside container
18
+ RUN cp /usr/lib/x86_64-linux-gnu/libnvinfer.so /usr/lib/x86_64-linux-gnu/libnvinfer_static.a
19
+
17
20
WORKDIR /workspace/TRTorch
18
21
RUN bazel build //:libtrtorch --compilation_mode opt
19
22
Original file line number Diff line number Diff line change @@ -68,8 +68,9 @@ cc_import(
68
68
"//conditions:default" : "lib/x86_64-linux-gnu/libnvinfer.so" ,
69
69
}),
70
70
static_library = select ({
71
+ ":aarch64_linux" : "lib/aarch64-linux-gnu/libnvinfer_static.a" ,
71
72
":windows" : "lib/nvinfer.lib" ,
72
- "//conditions:default" : ""
73
+ "//conditions:default" : "lib/x86_64-linux-gnu/libnvinfer_static.a "
73
74
}),
74
75
visibility = ["//visibility:private" ],
75
76
)
You can’t perform that action at this time.
0 commit comments