Skip to content

Commit

Permalink
Add NVML to the Windows CUDA components list. (#260)
Browse files Browse the repository at this point in the history
* Add NVML to the CUDA components list.

Also moves the array of CUDA components somewhere more accessible to edit.

* Add cupti to the WIndows CUDA installer.
  • Loading branch information
wmaxey authored Apr 8, 2024
1 parent d7ae3d4 commit e42ef92
Showing 1 changed file with 11 additions and 2 deletions.
13 changes: 11 additions & 2 deletions windows/image/installers/install-cuda.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -51,9 +51,18 @@ $componentTag = @{
}[$cudaVersion]

$cudaVersionUrl = "https://developer.download.nvidia.com/compute/cuda/$cudaUri"

$cudaComponents =
"nvcc_$componentTag",
"curand_$componentTag",
"curand_dev_$componentTag",
"cudart_$componentTag",
"cupti_$componentTag",
"nvrtc_$componentTag",
"nvrtc_dev_$componentTag",
"nvml_dev_$componentTag"

Invoke-WebRequest -Uri "$cudaVersionUrl" -OutFile "./cuda_network.exe" -UseBasicParsing
Start-Process -Wait -PassThru -FilePath .\cuda_network.exe -ArgumentList "-s nvcc_$componentTag curand_$componentTag curand_dev_$componentTag cudart_$componentTag nvrtc_$componentTag nvrtc_dev_$componentTag"
Start-Process -Wait -PassThru -FilePath .\cuda_network.exe -ArgumentList "-s $cudaComponents"

$ENV:PATH="$ENV:PATH;C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v$componentTag\bin"
$ENV:CUDA_PATH="C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v$componentTag"
Expand Down

0 comments on commit e42ef92

Please sign in to comment.