This repository was archived by the owner on Aug 15, 2025. It is now read-only.
File tree Expand file tree Collapse file tree 3 files changed +4
-9
lines changed Expand file tree Collapse file tree 3 files changed +4
-9
lines changed Original file line number Diff line number Diff line change @@ -357,7 +357,6 @@ for py_ver in "${DESIRED_PYTHON[@]}"; do
357357 PYTORCH_GITHUB_ROOT_DIR=" $pytorch_rootdir " \
358358 PYTORCH_BUILD_STRING=" $build_string " \
359359 PYTORCH_MAGMA_CUDA_VERSION=" $cuda_nodot " \
360- USE_CUSPARSELT=0 \
361360 conda build -c " $ANACONDA_USER " \
362361 ${NO_TEST:- } \
363362 --no-anaconda-upload \
Original file line number Diff line number Diff line change 5353if [[ -n " $build_with_cuda " ]]; then
5454 export TORCH_NVCC_FLAGS=" -Xfatbin -compress-all"
5555 TORCH_CUDA_ARCH_LIST=" 5.0;6.0;6.1;7.0;7.5;8.0;8.6"
56- export USE_STATIC_CUDNN=1 # links cudnn statically (driven by tools/setup_helpers/cudnn.py)
56+ export USE_STATIC_CUDNN=0 # link with cudnn dynamically
57+ export USE_CUSPARSELT=1 # link with cusparselt
5758
5859 if [[ $CUDA_VERSION == 11.8* ]]; then
5960 TORCH_CUDA_ARCH_LIST=" $TORCH_CUDA_ARCH_LIST ;3.7+PTX;9.0"
60- # for cuda 11.8 we use cudnn 8.7
61- # which does not have single static libcudnn_static.a deliverable to link with
62- export USE_STATIC_CUDNN=0
6361 # for cuda 11.8 include all dynamic loading libraries
64- DEPS_LIST=(/usr/local/cuda/lib64/libcudnn* .so.8 /usr/local/cuda-11.8/extras/CUPTI/lib64/libcupti.so.11.8)
62+ DEPS_LIST=(/usr/local/cuda/lib64/libcudnn* .so.8 /usr/local/cuda-11.8/extras/CUPTI/lib64/libcupti.so.11.8 /usr/local/cuda/lib64/libcusparseLt.so.0 )
6563 elif [[ $CUDA_VERSION == 12.1* ]]; then
6664 # cuda 12 does not support sm_3x
6765 TORCH_CUDA_ARCH_LIST=" $TORCH_CUDA_ARCH_LIST ;9.0"
6866 # for cuda 12.1 we use cudnn 8.8 and include all dynamic loading libraries
69- export USE_STATIC_CUDNN=0
70- DEPS_LIST=(/usr/local/cuda/lib64/libcudnn* .so.8 /usr/local/cuda-12.1/extras/CUPTI/lib64/libcupti.so.12)
67+ DEPS_LIST=(/usr/local/cuda/lib64/libcudnn* .so.8 /usr/local/cuda-12.1/extras/CUPTI/lib64/libcupti.so.12 /usr/local/cuda/lib64/libcusparseLt.so.0)
7168 fi
7269 if [[ -n " $OVERRIDE_TORCH_CUDA_ARCH_LIST " ]]; then
7370 TORCH_CUDA_ARCH_LIST=" $OVERRIDE_TORCH_CUDA_ARCH_LIST "
Original file line number Diff line number Diff line change 9898 - _GLIBCXX_USE_CXX11_ABI # [unix]
9999 - MAX_JOBS # [unix]
100100 - OVERRIDE_TORCH_CUDA_ARCH_LIST
101- - USE_CUSPARSELT
102101
103102test :
104103 imports :
You can’t perform that action at this time.
0 commit comments