File tree Expand file tree Collapse file tree 2 files changed +5
-1
lines changed
third_party/tensorrt/local Expand file tree Collapse file tree 2 files changed +5
-1
lines changed Original file line number Diff line number Diff line change @@ -14,6 +14,9 @@ COPY . /workspace/TRTorch
1414RUN rm /workspace/TRTorch/WORKSPACE
1515COPY ./docker/WORKSPACE.cu11.docker /workspace/TRTorch/WORKSPACE
1616
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+
1720WORKDIR /workspace/TRTorch
1821RUN bazel build //:libtrtorch --compilation_mode opt
1922
Original file line number Diff line number Diff line change @@ -68,8 +68,9 @@ cc_import(
6868 "//conditions:default" : "lib/x86_64-linux-gnu/libnvinfer.so" ,
6969 }),
7070 static_library = select ({
71+ ":aarch64_linux" : "lib/aarch64-linux-gnu/libnvinfer_static.a" ,
7172 ":windows" : "lib/nvinfer.lib" ,
72- "//conditions:default" : ""
73+ "//conditions:default" : "lib/x86_64-linux-gnu/libnvinfer_static.a "
7374 }),
7475 visibility = ["//visibility:private" ],
7576)
You can’t perform that action at this time.
0 commit comments