Skip to content

Commit

Permalink
Windows AMI - Cuda 12.6 (#5880)
Browse files Browse the repository at this point in the history
  • Loading branch information
tinglvv authored Nov 9, 2024
1 parent 42c66e9 commit fbebf82
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 0 deletions.
5 changes: 5 additions & 0 deletions aws/ami/windows/scripts/Installers/Install-CUDA-Tools.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,11 @@ Switch ($cudaVersion) {
$cudnn_subfolder = "cudnn-windows-x86_64-9.1.0.70_cuda12-archive"
$installerArgs += " cuda_profiler_api_$cudaVersion nvjitlink_$cudaVersion"
}
"12.6" {
$toolkitInstaller = "cuda_12.6.2_560.94_windows.exe"
$cudnn_subfolder = "cudnn-windows-x86_64-9.5.0.50_cuda12-archive"
$installerArgs += " cuda_profiler_api_$cudaVersion nvjitlink_$cudaVersion"
}
}


Expand Down
7 changes: 7 additions & 0 deletions aws/ami/windows/windows.pkr.hcl
Original file line number Diff line number Diff line change
Expand Up @@ -120,6 +120,13 @@ build {
]
}

provisioner "powershell" {
environment_vars = ["CUDA_VERSION=12.6"]
scripts = [
"${path.root}/scripts/Installers/Install-CUDA-Tools.ps1",
]
}

# Uninstall Windows Defender, it brings more trouble than it's worth. Do this
# last as it screws up the installation of other services like sshd somehow
provisioner "powershell" {
Expand Down

0 comments on commit fbebf82

Please sign in to comment.