|
3 | 3 | set -ex |
4 | 4 |
|
5 | 5 | 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" |
7 | 7 | rm -rf /usr/local/cuda-11.8 /usr/local/cuda |
8 | 8 | # install CUDA 11.8.0 in the same container |
9 | 9 | 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 { |
31 | 31 | cd .. |
32 | 32 | rm -rf tmp_nccl |
33 | 33 | 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 |
34 | 44 | } |
35 | 45 |
|
36 | 46 | 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" |
38 | 48 | rm -rf /usr/local/cuda-12.1 /usr/local/cuda |
39 | 49 | # install CUDA 12.1.0 in the same container |
40 | 50 | 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 { |
62 | 72 | cd .. |
63 | 73 | rm -rf tmp_nccl |
64 | 74 | 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 |
65 | 85 | } |
66 | 86 |
|
67 | 87 | function prune_118 { |
|
0 commit comments