mirror of
https://github.com/gnss-sdr/gnss-sdr
synced 2026-11-24 16:17:22 +00:00
With -DENABLE_CUDA=ON, band<n>_cuda=true computes that band's frequency-translating FIR (complex composite taps applied to the real capture) on an NVIDIA GPU through the new CudaDdcEngine, instead of on a CPU worker thread. As with the CUDA acquisition engine, the public interface has no CUDA types and hides the implementation behind a PIMPL. Each band falls back to the CPU, with a warning in the log, if its engine cannot be created or a GPU call fails. Builds without CUDA, and bands without the flag, are unchanged. Taken from PR #1144, plus: - Report the CUDA status per band with LOG instead of std::cout/cerr - Check cudaGetLastError() after the kernel launch, so a failed launch is not mistaken for valid output - Select the engine's device in set_taps(), compute() and the destructor, since compute() runs on the band worker threads - Build the engine only with both ENABLE_CUDA and ENABLE_EVK1029