Skip to content

Commit af37b00

Browse files
authored
Fix location of the dependency library. (#134)
1 parent 42a8fd4 commit af37b00

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

CMakeLists.txt

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -160,7 +160,6 @@ endif() # TRITON_PYTORCH_ENABLE_TORCHTRT
160160

161161
if (CMAKE_HOST_SYSTEM_PROCESSOR MATCHES "aarch64")
162162
set(LIBS_ARCH "aarch64")
163-
set(CUSPARSE_ARCH "sbsa")
164163
set(LIBTORCH_LIBS
165164
"libopenblas.so.0"
166165
"libnvpl_blas_core.so.0"
@@ -176,7 +175,6 @@ if (CMAKE_HOST_SYSTEM_PROCESSOR MATCHES "aarch64")
176175
)
177176
else()
178177
set(LIBS_ARCH "x86_64")
179-
set(CUSPARSE_ARCH "x86_64")
180178
set(LIBTORCH_LIBS
181179
"libmkl_avx2.so.1"
182180
"libmkl_avx512.so.1"
@@ -232,7 +230,7 @@ if (${TRITON_PYTORCH_DOCKER_BUILD})
232230
COMMAND docker cp pytorch_backend_ptlib:/usr/local/lib/python3.10/dist-packages/torch/lib/libtorch_global_deps.so libtorch_global_deps.so
233231
COMMAND docker cp pytorch_backend_ptlib:/usr/local/lib/python3.10/dist-packages/torch/lib/libcaffe2_nvrtc.so libcaffe2_nvrtc.so
234232
# TODO: Revisit when not needed by making it part of cuda base container.
235-
COMMAND docker cp -L pytorch_backend_ptlib:/usr/local/cuda-12.5/targets/${CUSPARSE_ARCH}-linux/lib/libcusparseLt.so libcusparseLt.so
233+
COMMAND docker cp -L pytorch_backend_ptlib:/usr/local/cuda/lib64/libcusparseLt.so libcusparseLt.so
236234
COMMAND docker cp pytorch_backend_ptlib:/usr/local/lib/libtorchvision.so libtorchvision.so
237235
COMMAND /bin/sh -c "if [ ${TRITON_PYTORCH_ENABLE_TORCHTRT} = 'ON' ]; then docker cp pytorch_backend_ptlib:/usr/local/lib/python3.10/dist-packages/torch_tensorrt/lib/libtorchtrt_runtime.so libtorchtrt_runtime.so; fi"
238236
COMMAND docker cp pytorch_backend_ptlib:/usr/local/lib/python3.10/dist-packages/torch_tensorrt/bin/torchtrtc torchtrtc || echo "error ignored..." || true

0 commit comments

Comments
 (0)