Skip to content

Commit 73bb113

Browse files
kenvandineCopilot
andauthored
Potential fix for pull request finding
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
1 parent fc97199 commit 73bb113

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

.github/workflows/build.yml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -263,8 +263,10 @@ jobs:
263263
$cudaBin = Join-Path $env:CUDA_PATH 'bin'
264264
$runtimeDllPatterns = @('cudart64_*.dll', 'cublas64_*.dll', 'cublasLt64_*.dll', 'curand64_*.dll', 'nvJitLink_*.dll')
265265
foreach ($pattern in $runtimeDllPatterns) {
266-
$dll = Get-ChildItem -Path $cudaBin -Filter $pattern | Sort-Object Name -Descending | Select-Object -First 1
267-
if ($dll) { Copy-Item $dll.FullName .\build\bin\Release\ }
266+
$dll = Get-ChildItem -Path $cudaBin -Filter $pattern -ErrorAction Stop | Sort-Object Name -Descending | Select-Object -First 1
267+
if (-not $dll) { throw "Required CUDA runtime DLL matching '$pattern' was not found in $cudaBin" }
268+
Copy-Item $dll.FullName .\build\bin\Release\
269+
}
268270
}
269271
7z a sd-${{ env.BRANCH_NAME }}-${{ steps.commit.outputs.short }}-windows-cuda-${{ matrix.sm }}-x64.zip .\build\bin\Release\*
270272

0 commit comments

Comments
 (0)