Skip to content

Commit 00841b6

Browse files
committed
Add cuSparseLt-0.5.0 to manywheel images
1 parent 0481289 commit 00841b6

File tree

1 file changed

+22
-2
lines changed

1 file changed

+22
-2
lines changed

common/install_cuda.sh

Lines changed: 22 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
set -ex
44

55
function install_118 {
6-
echo "Installing CUDA 11.8 and cuDNN 8.7 and NCCL 2.15"
6+
echo "Installing CUDA 11.8 and cuDNN 8.7 and NCCL 2.15 and cuSparseLt-0.5.0"
77
rm -rf /usr/local/cuda-11.8 /usr/local/cuda
88
# install CUDA 11.8.0 in the same container
99
wget -q https://developer.download.nvidia.com/compute/cuda/11.8.0/local_installers/cuda_11.8.0_520.61.05_linux.run
@@ -31,10 +31,20 @@ function install_118 {
3131
cd ..
3232
rm -rf tmp_nccl
3333
ldconfig
34+
35+
# cuSparseLt license: https://docs.nvidia.com/cuda/cusparselt/license.html
36+
mkdir tmp_cusparselt && pushd tmp_cusparselt
37+
wget -q https://developer.download.nvidia.com/compute/cusparselt/redist/libcusparse_lt/linux-x86_64/libcusparse_lt-linux-x86_64-0.5.0.1-archive.tar.xz
38+
tar xf libcusparse_lt-linux-x86_64-0.5.0.1-archive.tar.xz
39+
cp -a libcusparse_lt-linux-x86_64-0.5.0.1-archive/include/* /usr/local/cuda/include/
40+
cp -a libcusparse_lt-linux-x86_64-0.5.0.1-archive/lib/* /usr/local/cuda/lib64/
41+
popd
42+
rm -rf tmp_custparselt
43+
ldconfig
3444
}
3545

3646
function install_121 {
37-
echo "Installing CUDA 12.1 and cuDNN 8.9 and NCCL 2.18.1"
47+
echo "Installing CUDA 12.1 and cuDNN 8.9 and NCCL 2.18.1 and cuSparseLt-0.5.0"
3848
rm -rf /usr/local/cuda-12.1 /usr/local/cuda
3949
# install CUDA 12.1.0 in the same container
4050
wget -q https://developer.download.nvidia.com/compute/cuda/12.1.1/local_installers/cuda_12.1.1_530.30.02_linux.run
@@ -62,6 +72,16 @@ function install_121 {
6272
cd ..
6373
rm -rf tmp_nccl
6474
ldconfig
75+
76+
# cuSparseLt license: https://docs.nvidia.com/cuda/cusparselt/license.html
77+
mkdir tmp_cusparselt && pushd tmp_cusparselt
78+
wget -q https://developer.download.nvidia.com/compute/cusparselt/redist/libcusparse_lt/linux-x86_64/libcusparse_lt-linux-x86_64-0.5.0.1-archive.tar.xz
79+
tar xf libcusparse_lt-linux-x86_64-0.5.0.1-archive.tar.xz
80+
cp -a libcusparse_lt-linux-x86_64-0.5.0.1-archive/include/* /usr/local/cuda/include/
81+
cp -a libcusparse_lt-linux-x86_64-0.5.0.1-archive/lib/* /usr/local/cuda/lib64/
82+
popd
83+
rm -rf tmp_custparselt
84+
ldconfig
6585
}
6686

6787
function prune_118 {

0 commit comments

Comments
 (0)