瀏覽代碼

build: stage CUDA runtime alongside app

master
Jan Svabenik 2 天之前
父節點
當前提交
fd25e33f84
共有 1 個檔案被更改,包括 18 行新增0 行删除
  1. +18
    -0
      build-sdrplay.ps1

+ 18
- 0
build-sdrplay.ps1 查看文件

@@ -57,4 +57,22 @@ if ($dllSrc) {
Write-Host 'WARNING: gpudemod_kernels.dll not found; build succeeded but runtime GPU demod will not load.' -ForegroundColor Yellow
}

$cudartCandidates = @(
(Join-Path $cudaBin 'cudart64_13.dll'),
'C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v13.2\bin\cudart64_13.dll',
'C:\CUDA\bin\cudart64_13.dll'
)
$cudartSrc = $cudartCandidates | Where-Object { $_ -and (Test-Path $_) } | Select-Object -First 1
if ($cudartSrc) {
$cudartDst = Join-Path $exeDir 'cudart64_13.dll'
try {
Copy-Item $cudartSrc $cudartDst -Force
Write-Host "CUDA runtime copied to $cudartDst" -ForegroundColor Green
} catch {
Write-Host "WARNING: could not copy CUDA runtime DLL to $cudartDst ($($_.Exception.Message))" -ForegroundColor Yellow
}
} else {
Write-Host 'WARNING: cudart64_13.dll not found; shared CUDA runtime may fail to load at runtime.' -ForegroundColor Yellow
}

Write-Host 'Done.' -ForegroundColor Green

Loading…
取消
儲存