From 0faa198bf0b0b393607b65d360e647c4ad095aa6 Mon Sep 17 00:00:00 2001 From: Jan Svabenik Date: Thu, 19 Mar 2026 09:40:54 +0100 Subject: [PATCH] docs: align README with current build flows --- README.md | 20 ++++++++++++-------- 1 file changed, 12 insertions(+), 8 deletions(-) diff --git a/README.md b/README.md index 45b484b..50f544b 100644 --- a/README.md +++ b/README.md @@ -33,15 +33,19 @@ go build -tags sdrplay ./cmd/sdrd .\sdrd.exe -config config.yaml ``` -#### Windows (GPU FFT / cuFFT) -Requires the NVIDIA CUDA Toolkit installed (cuFFT + cudart). Ensure CUDA `bin` and `lib/x64` are on PATH/LIB. -```powershell -$env:CGO_CFLAGS='-IC:\Program Files\SDRplay\API\inc -IC:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v12.4\include' -$env:CGO_LDFLAGS='-LC:\Program Files\SDRplay\API\x64 -lsdrplay_api -LC:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v12.4\lib\x64 -lcufft -lcudart' +#### Windows (GPU / CUDA status) +Windows CUDA support in this repository is currently split into separate steps: -go build -tags "sdrplay,cufft" ./cmd/sdrd -.\sdrd.exe -config config.yaml -``` +- `build-windows-default.ps1` → reliable default Windows app build +- `build-cuda-windows.ps1` → builds CUDA kernel artifacts (`kernels.obj`, `gpudemod_kernels.lib`) +- `build-windows-cuda-app.ps1` → experimental full Windows CUDA app build path + +Important: +- the original invalid `#cgo LDFLAGS` CUDA integration issue has been fixed +- CUDA kernel artifact preparation works on Jan's machine +- a full end-to-end Windows CUDA app build is still blocked by Go/CGO + Windows toolchain behavior (see `docs/build-cuda.md` and `docs/windows-cgo-msvc-note.md`) + +Use the scripts above instead of the older manual one-liner. ### Linux ```bash