@@ -8,10 +8,24 @@ curl -L -nv -o cuda.exe https://developer.download.nvidia.com/compute/cuda/12.2.
8
8
./cuda.exe -s nvcc_12.2 cudart_12.2 cublas_dev_12.2 curand_dev_12.2
9
9
rm cuda.exe
10
10
11
- CUDNN_ROOT=" C:/Program Files/NVIDIA/CUDNN/v8.8 "
12
- curl -L -nv -o cudnn.exe https://developer.download.nvidia.com/compute/redist/ cudnn/v8.8 .0/local_installers/12.0/cudnn_8.8.0.121_windows .exe
11
+ CUDNN_ROOT=" C:/Program Files/NVIDIA/CUDNN/v9.1 "
12
+ curl -L -nv -o cudnn.exe https://developer.download.nvidia.com/compute/cudnn/9.1 .0/local_installers/cudnn_9.1.0_windows .exe
13
13
./cudnn.exe -s
14
14
sleep 10
15
+ # Remove 11.8 folders
16
+ rm -rf " $CUDNN_ROOT /bin/11.8"
17
+ rm -rf " $CUDNN_ROOT /lib/11.8"
18
+ rm -rf " $CUDNN_ROOT /include/11.8"
19
+
20
+ # Move contents of 12.4 to parent directories
21
+ mv " $CUDNN_ROOT /bin/12.4/" * " $CUDNN_ROOT /bin/"
22
+ mv " $CUDNN_ROOT /lib/12.4/" * " $CUDNN_ROOT /lib/"
23
+ mv " $CUDNN_ROOT /include/12.4/" * " $CUDNN_ROOT /include/"
24
+
25
+ # Remove empty 12.4 folders
26
+ rmdir " $CUDNN_ROOT /bin/12.4"
27
+ rmdir " $CUDNN_ROOT /lib/12.4"
28
+ rmdir " $CUDNN_ROOT /include/12.4"
15
29
cp -r " $CUDNN_ROOT " /* " $CUDA_ROOT "
16
30
rm cudnn.exe
17
31
@@ -40,4 +54,4 @@ rm -r build
40
54
cp README.md python/
41
55
cp $CTRANSLATE2_ROOT /bin/ctranslate2.dll python/ctranslate2/
42
56
cp " C:/Program Files (x86)/Intel/oneAPI/compiler/latest/windows/redist/intel64_win/compiler/libiomp5md.dll" python/ctranslate2/
43
- cp " $CUDA_ROOT /bin/cudnn64_8 .dll" python/ctranslate2/
57
+ cp " $CUDA_ROOT /bin/cudnn64_9 .dll" python/ctranslate2/
0 commit comments