Skip to content

Commit a752247

Browse files
committed
port cuda changes
1 parent 4d37746 commit a752247

File tree

1 file changed

+19
-8
lines changed

1 file changed

+19
-8
lines changed

docker/common/install_cuda.sh

Lines changed: 19 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
#!/bin/bash
22

3-
# adapted from https://github.com/pytorch/builder/blob/main/common/install_cuda.sh
3+
# adapted from https://github.com/pytorch/pytorch/blob/main/.ci/docker/common/install_cuda.sh
44

55
set -ex
66

@@ -29,6 +29,17 @@ function install_cusparselt_052 {
2929
rm -rf tmp_cusparselt
3030
}
3131

32+
function install_cusparselt_062 {
33+
# cuSparseLt license: https://docs.nvidia.com/cuda/cusparselt/license.html
34+
mkdir tmp_cusparselt && pushd tmp_cusparselt
35+
wget -q https://developer.download.nvidia.com/compute/cusparselt/redist/libcusparse_lt/linux-x86_64/libcusparse_lt-linux-x86_64-0.6.2.3-archive.tar.xz
36+
tar xf libcusparse_lt-linux-x86_64-0.6.2.3-archive.tar.xz
37+
cp -a libcusparse_lt-linux-x86_64-0.6.2.3-archive/include/* /usr/local/cuda/include/
38+
cp -a libcusparse_lt-linux-x86_64-0.6.2.3-archive/lib/* /usr/local/cuda/lib64/
39+
popd
40+
rm -rf tmp_cusparselt
41+
}
42+
3243
function install_118 {
3344
echo "Installing CUDA 11.8 and cuDNN ${CUDNN_VERSION} and NCCL ${NCCL_VERSION} and cuSparseLt-0.4.0"
3445
rm -rf /usr/local/cuda-11.8 /usr/local/cuda
@@ -96,13 +107,13 @@ function install_121 {
96107
}
97108

98109
function install_124 {
99-
echo "Installing CUDA 12.4 and cuDNN ${CUDNN_VERSION} and NCCL ${NCCL_VERSION} and cuSparseLt-0.5.2"
110+
echo "Installing CUDA 12.4.1 and cuDNN ${CUDNN_VERSION} and NCCL ${NCCL_VERSION} and cuSparseLt-0.6.2"
100111
rm -rf /usr/local/cuda-12.4 /usr/local/cuda
101-
# install CUDA 12.4.0 in the same container
102-
wget -q https://developer.download.nvidia.com/compute/cuda/12.4.0/local_installers/cuda_12.4.0_550.54.14_linux.run
103-
chmod +x cuda_12.4.0_550.54.14_linux.run
104-
./cuda_12.4.0_550.54.14_linux.run --toolkit --silent
105-
rm -f cuda_12.4.0_550.54.14_linux.run
112+
# install CUDA 12.4.1 in the same container
113+
wget -q https://developer.download.nvidia.com/compute/cuda/12.4.1/local_installers/cuda_12.4.1_550.54.15_linux.run
114+
chmod +x cuda_12.4.1_550.54.15_linux.run
115+
./cuda_12.4.1_550.54.15_linux.run --toolkit --silent
116+
rm -f cuda_12.4.1_550.54.15_linux.run
106117
rm -f /usr/local/cuda && ln -s /usr/local/cuda-12.4 /usr/local/cuda
107118

108119
# cuDNN license: https://developer.nvidia.com/cudnn/license_agreement
@@ -123,7 +134,7 @@ function install_124 {
123134
cd ..
124135
rm -rf nccl
125136

126-
install_cusparselt_052
137+
install_cusparselt_062
127138

128139
ldconfig
129140
}

0 commit comments

Comments
 (0)