25개 이상의 토픽을 선택하실 수 없습니다. Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
Jan Svabenik c8c44a7350 Remove unused gpudemod phaseStatus helper 3 일 전
..
build Checkpoint before runtime optimization 3 일 전
native Stop exporting CUDA __global__ kernels from DLL 3 일 전
README.md docs: split CUDA build paths by platform 3 일 전
doc.go docs: add initial CUDA demod kernel source 3 일 전
gpudemod.go Remove unused gpudemod phaseStatus helper 3 일 전
gpudemod_cufft_test.go build: wire CUDA demod package through nvcc and MSVC 3 일 전
gpudemod_stub.go Add fused GPU demod path for recorder 3 일 전
gpudemod_test.go feat: prepare CUDA demod launch boundary 3 일 전
gpudemod_windows.go Remove unused gpudemod phaseStatus helper 3 일 전
kernels.cu feat: add demod validation and GPU mode telemetry 3 일 전
validation.go feat: wire CUDA freq-shift launcher 3 일 전
validation_extra.go feat: add demod validation and GPU mode telemetry 3 일 전
validation_extra_test.go feat: add demod validation and GPU mode telemetry 3 일 전
validation_runtime.go Disable GPU validation by default in production 3 일 전
validation_test.go feat: validate CUDA freq-shift output 3 일 전

README.md

gpudemod

Phase 1 CUDA demod scaffolding.

Current state

  • Standard Go builds use gpudemod_stub.go (!cufft).
  • cufft builds allocate GPU buffers and cross the CGO/CUDA launch boundary.
  • If CUDA launch wrappers are not backed by compiled kernels yet, the code falls back to CPU DSP.
  • The shifted IQ path is already wired so a successful GPU freq-shift result can be copied back and reused immediately.
  • Build orchestration should now be considered OS-specific; see docs/build-cuda.md.

First real kernel

kernels.cu contains the first candidate implementation:

  • gpud_freq_shift_kernel

This is not compiled automatically yet in the current environment because the machine currently lacks a CUDA compiler toolchain in PATH (nvcc not found).

Next machine-side step

On a CUDA-capable dev machine with toolchain installed:

  1. Compile kernels.cu into an object file and archive it into a linkable library
    • helper script: tools/build-gpudemod-kernel.ps1
  2. On Jan's Windows machine, the working kernel-build path currently relies on nvcc + MSVC cl.exe in PATH
  3. Link gpudemod_kernels.lib into the cufft build
  4. Replace gpud_launch_freq_shift(...) stub body with the real kernel launch
  5. Validate copied-back shifted IQ against dsp.FreqShift
  6. Only then move the next stage (FM discriminator) onto the GPU

Why this is still useful

The runtime/buffer/recorder/fallback structure is already in place, so once kernel compilation is available, real acceleration can be inserted without another architecture rewrite.