Parcourir la source

build: stage CUDA runtime alongside app

master
Jan Svabenik il y a 2 jours
Parent
révision
fd25e33f84
1 fichiers modifiés avec 18 ajouts et 0 suppressions
  1. +18
    -0
      build-sdrplay.ps1

+ 18
- 0
build-sdrplay.ps1 Voir le fichier

@@ -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 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 Write-Host 'Done.' -ForegroundColor Green

Chargement…
Annuler
Enregistrer