Skip to content

Commit fbebf82

Browse files
authored
Windows AMI - Cuda 12.6 (#5880)
related to pytorch/pytorch#138440 cc @atalman
1 parent 42c66e9 commit fbebf82

File tree

2 files changed

+12
-0
lines changed

2 files changed

+12
-0
lines changed

aws/ami/windows/scripts/Installers/Install-CUDA-Tools.ps1

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,11 @@ Switch ($cudaVersion) {
3434
$cudnn_subfolder = "cudnn-windows-x86_64-9.1.0.70_cuda12-archive"
3535
$installerArgs += " cuda_profiler_api_$cudaVersion nvjitlink_$cudaVersion"
3636
}
37+
"12.6" {
38+
$toolkitInstaller = "cuda_12.6.2_560.94_windows.exe"
39+
$cudnn_subfolder = "cudnn-windows-x86_64-9.5.0.50_cuda12-archive"
40+
$installerArgs += " cuda_profiler_api_$cudaVersion nvjitlink_$cudaVersion"
41+
}
3742
}
3843

3944

aws/ami/windows/windows.pkr.hcl

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -120,6 +120,13 @@ build {
120120
]
121121
}
122122

123+
provisioner "powershell" {
124+
environment_vars = ["CUDA_VERSION=12.6"]
125+
scripts = [
126+
"${path.root}/scripts/Installers/Install-CUDA-Tools.ps1",
127+
]
128+
}
129+
123130
# Uninstall Windows Defender, it brings more trouble than it's worth. Do this
124131
# last as it screws up the installation of other services like sshd somehow
125132
provisioner "powershell" {

0 commit comments

Comments
 (0)