File tree Expand file tree Collapse file tree 1 file changed +3
-1
lines changed Expand file tree Collapse file tree 1 file changed +3
-1
lines changed Original file line number Diff line number Diff line change @@ -160,6 +160,7 @@ endif() # TRITON_PYTORCH_ENABLE_TORCHTRT
160
160
161
161
if (CMAKE_HOST_SYSTEM_PROCESSOR MATCHES "aarch64" )
162
162
set (LIBS_ARCH "aarch64" )
163
+ set (CUSPARSE_ARCH "sbsa" )
163
164
set (LIBTORCH_LIBS
164
165
"libopenblas.so.0"
165
166
"libnvpl_blas_core.so.0"
@@ -175,6 +176,7 @@ if (CMAKE_HOST_SYSTEM_PROCESSOR MATCHES "aarch64")
175
176
)
176
177
else ()
177
178
set (LIBS_ARCH "x86_64" )
179
+ set (CUSPARSE_ARCH "x86_64" )
178
180
set (LIBTORCH_LIBS
179
181
"libmkl_avx2.so.1"
180
182
"libmkl_avx512.so.1"
@@ -230,7 +232,7 @@ if (${TRITON_PYTORCH_DOCKER_BUILD})
230
232
COMMAND docker cp pytorch_backend_ptlib:/usr/local/lib/python3.10/dist-packages/torch/lib/libtorch_global_deps.so libtorch_global_deps.so
231
233
COMMAND docker cp pytorch_backend_ptlib:/usr/local/lib/python3.10/dist-packages/torch/lib/libcaffe2_nvrtc.so libcaffe2_nvrtc.so
232
234
# TODO: Revisit when not needed by making it part of cuda base container.
233
- COMMAND docker cp -L pytorch_backend_ptlib:/usr/local/cuda-12.5/targets/${LIBS_ARCH }-linux/lib/libcusparseLt.so libcusparseLt.so
235
+ COMMAND docker cp -L pytorch_backend_ptlib:/usr/local/cuda-12.5/targets/${CUSPARSE_ARCH }-linux/lib/libcusparseLt.so libcusparseLt.so
234
236
COMMAND docker cp pytorch_backend_ptlib:/usr/local/lib/libtorchvision.so libtorchvision.so
235
237
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"
236
238
COMMAND docker cp pytorch_backend_ptlib:/usr/local/lib/python3.10/dist-packages/torch_tensorrt/bin/torchtrtc torchtrtc || echo "error ignored..." || true
You can’t perform that action at this time.
0 commit comments