@@ -22,6 +22,7 @@ if exist "C:\\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v%CUDA_VERSION_STR
22
22
if %CUDA_VER% EQU 102 goto cuda102
23
23
if %CUDA_VER% EQU 113 goto cuda113
24
24
if %CUDA_VER% EQU 115 goto cuda115
25
+ if %CUDA_VER% EQU 116 goto cuda116
25
26
26
27
echo CUDA %CUDA_VERSION_STR% is not supported
27
28
exit /b 1
@@ -97,6 +98,33 @@ xcopy /Y "%SRC_DIR%\temp_build\zlib\dll_x64\*.dll" "C:\Windows\System32"
97
98
98
99
goto cuda_common
99
100
101
+ :cuda116
102
+
103
+ set CUDA_INSTALL_EXE = cuda_11.6.0_511.23_windows.exe
104
+ if not exist " %SRC_DIR% \temp_build\%CUDA_INSTALL_EXE% " (
105
+ curl -k -L " https://ossci-windows.s3.amazonaws.com/%CUDA_INSTALL_EXE% " --output " %SRC_DIR% \temp_build\%CUDA_INSTALL_EXE% "
106
+ if errorlevel 1 exit /b 1
107
+ set " CUDA_SETUP_FILE = %SRC_DIR% \temp_build\%CUDA_INSTALL_EXE% "
108
+ set " ARGS = thrust_11.6 nvcc_11.6 cuobjdump_11.6 nvprune_11.6 nvprof_11.6 cupti_11.6 cublas_11.6 cublas_dev_11.6 cudart_11.6 cufft_11.6 cufft_dev_11.6 curand_11.6 curand_dev_11.6 cusolver_11.6 cusolver_dev_11.6 cusparse_11.6 cusparse_dev_11.6 npp_11.6 npp_dev_11.6 nvrtc_11.6 nvrtc_dev_11.6 nvml_dev_11.6"
109
+ )
110
+
111
+ set CUDNN_FOLDER = cudnn-windows-x86_64-8.3.2.44_cuda11.5-archive
112
+ set CUDNN_LIB_FOLDER = " lib"
113
+ set " CUDNN_INSTALL_ZIP = %CUDNN_FOLDER% .zip"
114
+ if not exist " %SRC_DIR% \temp_build\%CUDNN_INSTALL_ZIP% " (
115
+ curl -k -L " http://s3.amazonaws.com/ossci-windows/%CUDNN_INSTALL_ZIP% " --output " %SRC_DIR% \temp_build\%CUDNN_INSTALL_ZIP% "
116
+ if errorlevel 1 exit /b 1
117
+ set " CUDNN_SETUP_FILE = %SRC_DIR% \temp_build\%CUDNN_INSTALL_ZIP% "
118
+ )
119
+
120
+ @ REM Cuda 8.3+ required zlib to be installed on the path
121
+ echo Installing ZLIB dlls
122
+ curl -k -L " http://s3.amazonaws.com/ossci-windows/zlib123dllx64.zip" --output " %SRC_DIR% \temp_build\zlib123dllx64.zip"
123
+ 7z x " %SRC_DIR% \temp_build\zlib123dllx64.zip" -o" %SRC_DIR% \temp_build\zlib"
124
+ xcopy /Y " %SRC_DIR% \temp_build\zlib\dll_x64\*.dll" " C:\Windows\System32"
125
+
126
+ goto cuda_common
127
+
100
128
:cuda_common
101
129
:: NOTE: We only install CUDA if we don't have it installed already.
102
130
:: With GHA runners these should be pre-installed as part of our AMI process
0 commit comments