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
357
357
PYTORCH_GITHUB_ROOT_DIR=" $pytorch_rootdir " \
358
358
PYTORCH_BUILD_STRING=" $build_string " \
359
359
PYTORCH_MAGMA_CUDA_VERSION=" $cuda_nodot " \
360
- USE_CUSPARSELT=0 \
361
360
conda build -c " $ANACONDA_USER " \
362
361
${NO_TEST:- } \
363
362
--no-anaconda-upload \
Original file line number Diff line number Diff line change 53
53
if [[ -n " $build_with_cuda " ]]; then
54
54
export TORCH_NVCC_FLAGS=" -Xfatbin -compress-all"
55
55
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
57
58
58
59
if [[ $CUDA_VERSION == 11.8* ]]; then
59
60
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
63
61
# 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 )
65
63
elif [[ $CUDA_VERSION == 12.1* ]]; then
66
64
# cuda 12 does not support sm_3x
67
65
TORCH_CUDA_ARCH_LIST=" $TORCH_CUDA_ARCH_LIST ;9.0"
68
66
# 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)
71
68
fi
72
69
if [[ -n " $OVERRIDE_TORCH_CUDA_ARCH_LIST " ]]; then
73
70
TORCH_CUDA_ARCH_LIST=" $OVERRIDE_TORCH_CUDA_ARCH_LIST "
Original file line number Diff line number Diff line change 98
98
- _GLIBCXX_USE_CXX11_ABI # [unix]
99
99
- MAX_JOBS # [unix]
100
100
- OVERRIDE_TORCH_CUDA_ARCH_LIST
101
- - USE_CUSPARSELT
102
101
103
102
test :
104
103
imports :
You can’t perform that action at this time.
0 commit comments