Skip to content

Commit 09b365d

Browse files
committed
Update cusparselt to v0.5.2
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
1 parent 4c758b3 commit 09b365d

File tree

1 file changed

+14
-3
lines changed

1 file changed

+14
-3
lines changed

common/install_cuda.sh

Lines changed: 14 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,19 @@ function install_cusparselt_040 {
1313
rm -rf tmp_custparselt
1414
}
1515

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_custparselt
25+
}
26+
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)