@@ -26,6 +26,7 @@ if exist "C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v%CUDA_VERSION_STR%
2626if %CUDA_VER% EQU 118 goto cuda118
2727if %CUDA_VER% EQU 121 goto cuda121
2828if %CUDA_VER% EQU 124 goto cuda124
29+ if %CUDA_VER% EQU 126 goto cuda126
2930
3031echo CUDA %CUDA_VERSION_STR% is not supported
3132exit /b 1
@@ -111,6 +112,33 @@ xcopy /Y "%SRC_DIR%\temp_build\zlib\dll_x64\*.dll" "C:\Windows\System32"
111112
112113goto cuda_common
113114
115+ :cuda126
116+
117+ set CUDA_INSTALL_EXE = cuda_12.6.2_560.94_windows.exe
118+ if not exist " %SRC_DIR% \temp_build\%CUDA_INSTALL_EXE% " (
119+ curl -k -L " https://ossci-windows.s3.amazonaws.com/%CUDA_INSTALL_EXE% " --output " %SRC_DIR% \temp_build\%CUDA_INSTALL_EXE% "
120+ if errorlevel 1 exit /b 1
121+ set " CUDA_SETUP_FILE = %SRC_DIR% \temp_build\%CUDA_INSTALL_EXE% "
122+ set " ARGS = cuda_profiler_api_12.6 thrust_12.6 nvcc_12.6 cuobjdump_12.6 nvprune_12.6 nvprof_12.6 cupti_12.6 cublas_12.6 cublas_dev_12.6 cudart_12.6 cufft_12.6 cufft_dev_12.6 curand_12.6 curand_dev_12.6 cusolver_12.6 cusolver_dev_12.6 cusparse_12.6 cusparse_dev_12.6 npp_12.6 npp_dev_12.6 nvrtc_12.6 nvrtc_dev_12.6 nvml_dev_12.6 nvjitlink_12.6 nvtx_12.6"
123+ )
124+
125+ set CUDNN_FOLDER = cudnn-windows-x86_64-9.5.0.50_cuda12-archive
126+ set CUDNN_LIB_FOLDER = " lib"
127+ set " CUDNN_INSTALL_ZIP = %CUDNN_FOLDER% .zip"
128+ if not exist " %SRC_DIR% \temp_build\%CUDNN_INSTALL_ZIP% " (
129+ curl -k -L " http://s3.amazonaws.com/ossci-windows/%CUDNN_INSTALL_ZIP% " --output " %SRC_DIR% \temp_build\%CUDNN_INSTALL_ZIP% "
130+ if errorlevel 1 exit /b 1
131+ set " CUDNN_SETUP_FILE = %SRC_DIR% \temp_build\%CUDNN_INSTALL_ZIP% "
132+ )
133+
134+ @ REM cuDNN 8.3+ required zlib to be installed on the path
135+ echo Installing ZLIB dlls
136+ curl -k -L " http://s3.amazonaws.com/ossci-windows/zlib123dllx64.zip" --output " %SRC_DIR% \temp_build\zlib123dllx64.zip"
137+ 7z x " %SRC_DIR% \temp_build\zlib123dllx64.zip" -o" %SRC_DIR% \temp_build\zlib"
138+ xcopy /Y " %SRC_DIR% \temp_build\zlib\dll_x64\*.dll" " C:\Windows\System32"
139+
140+ goto cuda_common
141+
114142:cuda_common
115143:: NOTE: We only install CUDA if we don't have it installed already.
116144:: With GHA runners these should be pre-installed as part of our AMI process
0 commit comments