@@ -54,20 +54,6 @@ function install_118 {
5454 ldconfig
5555}
5656
57- function install_124 {
58- CUDNN_VERSION=9.1.0.70
59- echo " Installing CUDA 12.4.1 and cuDNN ${CUDNN_VERSION} and NCCL and cuSparseLt-0.6.2"
60- install_cuda 12.4.1 cuda_12.4.1_550.54.15_linux
61-
62- install_cudnn 12 $CUDNN_VERSION
63-
64- CUDA_VERSION=12.4 bash install_nccl.sh
65-
66- CUDA_VERSION=12.4 bash install_cusparselt.sh
67-
68- ldconfig
69- }
70-
7157function install_126 {
7258 CUDNN_VERSION=9.5.1.17
7359 echo " Installing CUDA 12.6.3 and cuDNN ${CUDNN_VERSION} and NCCL and cuSparseLt-0.6.3"
@@ -113,40 +99,6 @@ function prune_118 {
11399 rm -rf $CUDA_BASE /libnvvp $CUDA_BASE /nsightee_plugins $CUDA_BASE /nsight-compute-2022.3.0 $CUDA_BASE /nsight-systems-2022.4.2/
114100}
115101
116- function prune_124 {
117- echo " Pruning CUDA 12.4"
118- # ####################################################################################
119- # CUDA 12.4 prune static libs
120- # ####################################################################################
121- export NVPRUNE=" /usr/local/cuda-12.4/bin/nvprune"
122- export CUDA_LIB_DIR=" /usr/local/cuda-12.4/lib64"
123-
124- export GENCODE=" -gencode arch=compute_50,code=sm_50 -gencode arch=compute_60,code=sm_60 -gencode arch=compute_70,code=sm_70 -gencode arch=compute_75,code=sm_75 -gencode arch=compute_80,code=sm_80 -gencode arch=compute_86,code=sm_86 -gencode arch=compute_90,code=sm_90"
125- export GENCODE_CUDNN=" -gencode arch=compute_50,code=sm_50 -gencode arch=compute_60,code=sm_60 -gencode arch=compute_61,code=sm_61 -gencode arch=compute_70,code=sm_70 -gencode arch=compute_75,code=sm_75 -gencode arch=compute_80,code=sm_80 -gencode arch=compute_86,code=sm_86 -gencode arch=compute_90,code=sm_90"
126-
127- if [[ -n " $OVERRIDE_GENCODE " ]]; then
128- export GENCODE=$OVERRIDE_GENCODE
129- fi
130- if [[ -n " $OVERRIDE_GENCODE_CUDNN " ]]; then
131- export GENCODE_CUDNN=$OVERRIDE_GENCODE_CUDNN
132- fi
133-
134- # all CUDA libs except CuDNN and CuBLAS
135- ls $CUDA_LIB_DIR / | grep " \.a" | grep -v " culibos" | grep -v " cudart" | grep -v " cudnn" | grep -v " cublas" | grep -v " metis" \
136- | xargs -I {} bash -c \
137- " echo {} && $NVPRUNE $GENCODE $CUDA_LIB_DIR /{} -o $CUDA_LIB_DIR /{}"
138-
139- # prune CuDNN and CuBLAS
140- $NVPRUNE $GENCODE_CUDNN $CUDA_LIB_DIR /libcublas_static.a -o $CUDA_LIB_DIR /libcublas_static.a
141- $NVPRUNE $GENCODE_CUDNN $CUDA_LIB_DIR /libcublasLt_static.a -o $CUDA_LIB_DIR /libcublasLt_static.a
142-
143- # ####################################################################################
144- # CUDA 12.4 prune visual tools
145- # ####################################################################################
146- export CUDA_BASE=" /usr/local/cuda-12.4/"
147- rm -rf $CUDA_BASE /libnvvp $CUDA_BASE /nsightee_plugins $CUDA_BASE /nsight-compute-2024.1.0 $CUDA_BASE /nsight-systems-2023.4.4/
148- }
149-
150102function prune_126 {
151103 echo " Pruning CUDA 12.6"
152104 # ####################################################################################
203155 case " $1 " in
204156 11.8) install_118; prune_118
205157 ;;
206- 12.4) install_124; prune_124
207- ;;
208158 12.6|12.6.* ) install_126; prune_126
209159 ;;
210160 12.8|12.8.* ) install_128;
0 commit comments