Skip to content

Commit 1bb4c55

Browse files
committed
[dist] Update to latest CUDA and CuDNN versions
1 parent 53658c8 commit 1bb4c55

1 file changed

Lines changed: 6 additions & 7 deletions

File tree

.github/workflows/build_wheels_windows.yml

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ jobs:
7272
uses: actions/cache@v3
7373
with:
7474
path: .deps/Nvidia
75-
key: nvidia-deps-cuda-12.4.0-cudnn-8.9.7.29
75+
key: nvidia-deps-cuda-13.1.1-cudnn-9.18.1.3
7676
- name: Clone NVIDIA dependencies
7777
if: steps.cache-nvidia-deps.outputs.cache-hit != 'true'
7878
env:
@@ -85,27 +85,26 @@ jobs:
8585
shell: bash
8686
- name: 🔧 Install NVIDIA CUDA Toolkit
8787
run: |
88-
$installer_path = ".deps/Nvidia/cuda_12.4.0_windows_network.exe"
88+
$installer_path = ".deps/Nvidia/cuda_13.1.1_windows_network.exe"
8989
if (-not (Test-Path $installer_path)) {
9090
throw "CUDA Toolkit installer not found at $installer_path"
9191
}
9292
echo "Installing CUDA Toolkit silently..."
93-
$arguments = "-s nvcc_12.4 cudart_12.4 cublas_12.4 cublas_dev_12.4 cufft_12.4 cufft_dev_12.4 npp_12.4 npp_dev_12.4"
94-
Start-Process -FilePath $installer_path -ArgumentList $arguments -Wait -NoNewWindow
93+
Start-Process -FilePath $installer_path -ArgumentList "-s" -Wait -NoNewWindow
9594
echo "Adding CUDA to PATH..."
96-
$CUDA_PATH = "C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v12.4"
95+
$CUDA_PATH = "C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v13.1"
9796
echo "CUDA_PATH=$CUDA_PATH" | Out-File -FilePath $env:GITHUB_ENV -Append
9897
Copy-Item -Path "$CUDA_PATH/bin/*" -Destination . -Include "*.dll"
9998
shell: pwsh
10099
- name: 🔧 Install NVIDIA CuDNN
101100
run: |
102-
$cudnn_path = ".deps/Nvidia/cudnn-windows-x86_64-8.9.7.29_cuda12-archive.zip"
101+
$cudnn_path = ".deps/Nvidia/cudnn-windows-x86_64-9.18.1.3_cuda13-archive.zip"
103102
if (-not (Test-Path $cudnn_path)) {
104103
throw "CuDNN archive not found at $cudnn_path"
105104
}
106105
echo "Installing CuDNN..."
107106
7z x $cudnn_path
108-
$CUDNN_PATH = "D:/a/opencv-python-cuda/opencv-python-cuda/cudnn-windows-x86_64-8.9.7.29_cuda12-archive"
107+
$CUDNN_PATH = "D:/a/opencv-python-cuda/opencv-python-cuda/cudnn-windows-x86_64-9.18.1.3_cuda13-archive"
109108
echo "CUDNN_LIBRARY=$CUDNN_PATH/lib/x64/cudnn.lib" | Out-File -FilePath $env:GITHUB_ENV -Append
110109
echo "CUDNN_INCLUDE_DIR=$CUDNN_PATH/include" | Out-File -FilePath $env:GITHUB_ENV -Append
111110
Copy-Item -Path "$CUDNN_PATH/bin/*" -Destination . -Include "*.dll"

0 commit comments

Comments
 (0)