Skip to content

Commit d83cc98

Browse files
utilForeverCopilot
andcommitted
ci: include CUDA crt package on Windows
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
1 parent 6eff16d commit d83cc98

1 file changed

Lines changed: 6 additions & 1 deletion

File tree

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

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,6 +84,11 @@ $VISUAL_STUDIO_YEAR = $VISUAL_STUDIO.Substring($VISUAL_STUDIO.Length-4)
8484

8585
$CUDA_PACKAGES = ""
8686

87+
# CUDA 13+ separates runtime headers such as crt/host_config.h into the crt package.
88+
if ([version]$CUDA_VERSION_FULL -ge [version]"13.0" -and -not ($CUDA_PACKAGES_IN -contains "crt")) {
89+
$CUDA_PACKAGES_IN += "crt"
90+
}
91+
8792
# for CUDA >= 11 cudart is a required package.
8893
# if([version]$CUDA_VERSION_FULL -ge [version]"11.0") {
8994
# if(-not $CUDA_PACKAGES_IN -contains "cudart") {
@@ -154,4 +159,4 @@ Write-Output "CUDA_PATH_VX_Y $($CUDA_PATH_VX_Y)"
154159

155160
# PATH needs updating elsewhere, anything in here won't persist.
156161
# Append $CUDA_PATH/bin to path.
157-
# Set CUDA_PATH as an environmental variable
162+
# Set CUDA_PATH as an environmental variable

0 commit comments

Comments
 (0)