Skip to content

Commit 53b5b02

Browse files
authored
Update cusparselt to v0.5.2 (#1672)
This PR adds in support for cuSPARSELt v0.5.2 and updates the cuda 12.1 build step to use it instead of 0.4.0 Also fixes a typo when deleting the cusparselt folder after installing.
1 parent 4c758b3 commit 53b5b02

File tree

1 file changed

+15
-4
lines changed

1 file changed

+15
-4
lines changed

common/install_cuda.sh

Lines changed: 15 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,11 +10,22 @@ function install_cusparselt_040 {
1010
cp -a libcusparse_lt-linux-x86_64-0.4.0.7-archive/include/* /usr/local/cuda/include/
1111
cp -a libcusparse_lt-linux-x86_64-0.4.0.7-archive/lib/* /usr/local/cuda/lib64/
1212
popd
13-
rm -rf tmp_custparselt
13+
rm -rf tmp_cusparselt
14+
}
15+
16+
function install_cusparselt_052 {
17+
# cuSparseLt license: https://docs.nvidia.com/cuda/cusparselt/license.html
18+
mkdir tmp_cusparselt && pushd tmp_cusparselt
19+
wget -q https://developer.download.nvidia.com/compute/cusparselt/redist/libcusparse_lt/linux-x86_64/libcusparse_lt-linux-x86_64-0.5.2.1-archive.tar.xz
20+
tar xf libcusparse_lt-linux-x86_64-0.5.2.1-archive.tar.xz
21+
cp -a libcusparse_lt-linux-x86_64-0.5.2.1-archive/include/* /usr/local/cuda/include/
22+
cp -a libcusparse_lt-linux-x86_64-0.5.2.1-archive/lib/* /usr/local/cuda/lib64/
23+
popd
24+
rm -rf tmp_cusparselt
1425
}
1526

1627
function install_118 {
17-
echo "Installing CUDA 11.8 and cuDNN 8.7 and NCCL 2.15 and cuSparseLt-0.5.0"
28+
echo "Installing CUDA 11.8 and cuDNN 8.7 and NCCL 2.15 and cuSparseLt-0.4.0"
1829
rm -rf /usr/local/cuda-11.8 /usr/local/cuda
1930
# install CUDA 11.8.0 in the same container
2031
wget -q https://developer.download.nvidia.com/compute/cuda/11.8.0/local_installers/cuda_11.8.0_520.61.05_linux.run
@@ -47,7 +58,7 @@ function install_118 {
4758
}
4859

4960
function install_121 {
50-
echo "Installing CUDA 12.1 and cuDNN 8.9 and NCCL 2.18.1 and cuSparseLt-0.5.0"
61+
echo "Installing CUDA 12.1 and cuDNN 8.9 and NCCL 2.18.1 and cuSparseLt-0.5.2"
5162
rm -rf /usr/local/cuda-12.1 /usr/local/cuda
5263
# install CUDA 12.1.0 in the same container
5364
wget -q https://developer.download.nvidia.com/compute/cuda/12.1.1/local_installers/cuda_12.1.1_530.30.02_linux.run
@@ -74,7 +85,7 @@ function install_121 {
7485
cd ..
7586
rm -rf nccl
7687

77-
install_cusparselt_040
88+
install_cusparselt_052
7889

7990
ldconfig
8091
}

0 commit comments

Comments
 (0)