Wideband autonomous SDR analysis engine forked from sdr-visual-suite
Nie możesz wybrać więcej, niż 25 tematów Tematy muszą się zaczynać od litery lub cyfry, mogą zawierać myślniki ('-') i mogą mieć do 35 znaków.

28 wiersze
771B

  1. param(
  2. [string]$CudaRoot = 'C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v13.2',
  3. [string]$Source = 'internal/demod/gpudemod/kernels.cu',
  4. [string]$OutDir = 'internal/demod/gpudemod/build'
  5. )
  6. $ErrorActionPreference = 'Stop'
  7. $repo = Split-Path -Parent $PSScriptRoot
  8. Set-Location $repo
  9. $nvcc = Join-Path $CudaRoot 'bin\nvcc.exe'
  10. if (!(Test-Path $nvcc)) {
  11. throw "nvcc not found at $nvcc"
  12. }
  13. New-Item -ItemType Directory -Force -Path $OutDir | Out-Null
  14. $outObj = Join-Path $OutDir 'kernels.obj'
  15. Write-Host "Using nvcc: $nvcc"
  16. Write-Host "Building $Source -> $outObj"
  17. & $nvcc -c $Source -o $outObj -I (Join-Path $CudaRoot 'include') -Xcompiler "/EHsc"
  18. if ($LASTEXITCODE -ne 0) {
  19. throw "nvcc failed with exit code $LASTEXITCODE"
  20. }
  21. Write-Host "Built: $outObj"