Skip to content

Commit 203ebe1

Browse files
utilForeverCopilot
andcommitted
ci: use compiler package for modern CUDA
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
1 parent d83cc98 commit 203ebe1

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

.github/workflows/scripts/actions/install_cuda_windows.ps1

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -98,9 +98,9 @@ if ([version]$CUDA_VERSION_FULL -ge [version]"13.0" -and -not ($CUDA_PACKAGES_IN
9898

9999
Foreach ($package in $CUDA_PACKAGES_IN) {
100100
# Make sure the correct package name is used for nvcc.
101-
if($package -eq "nvcc" -and [version]$CUDA_VERSION_FULL -lt [version]"9.1"){
101+
if($package -eq "nvcc" -and [version]$CUDA_VERSION_FULL -ge [version]"9.1"){
102102
$package="compiler"
103-
} elseif($package -eq "compiler" -and [version]$CUDA_VERSION_FULL -ge [version]"9.1") {
103+
} elseif($package -eq "compiler" -and [version]$CUDA_VERSION_FULL -lt [version]"9.1") {
104104
$package="nvcc"
105105
}
106106
$CUDA_PACKAGES += " $($package)_$($CUDA_MAJOR).$($CUDA_MINOR)"

0 commit comments

Comments
 (0)