Skip to content

Commit 360d40a

Browse files
committed
cI: Add command to set the path of nvcc
1 parent 811d722 commit 360d40a

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

.github/workflows/windows-cuda.yml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,9 +58,13 @@ jobs:
5858
if (-not (Test-Path $cudaPath)) {
5959
throw "CUDA path '$cudaPath' does not exist."
6060
}
61+
$nvccExe = Join-Path $cudaPath "bin\nvcc.exe"
62+
if (-not (Test-Path $nvccExe)) {
63+
throw "nvcc executable '$nvccExe' does not exist."
64+
}
6165
"CUDA_PATH=$cudaPath" | Out-File -FilePath $env:GITHUB_ENV -Encoding utf8 -Append
6266
"$cudaPath\bin" | Out-File -FilePath $env:GITHUB_PATH -Encoding utf8 -Append
63-
nvcc -V
67+
& $nvccExe -V
6468
- name: Add MSBuild to PATH
6569
uses: microsoft/setup-msbuild@v2
6670
- name: Configure Build

0 commit comments

Comments
 (0)