perf(hle): AVX2+FMA register-tiled DSP convolution and FFT butterfly #22

Closed
github-bot wants to merge 1 commit from gh-pr/22/head into gh-pr/22/base
Owner

@⁠justadudeinbulgaria on GitHub · 2026-11-30 23:19 UTC · original
justadudeinbulgaria:pr/avx2-dsp-convolve → main · +234 −12 · 1 files · 1 commits · closed without merging

Summary

Accelerates partitioned FFT audio convolution in crates/victory-hle/src/modules/dsp/convolve.rs using runtime-checked AVX2+FMA (is_x86_feature_detected!("avx2") && is_x86_feature_detected!("fma")) with automatic scalar fallback:

  • Register-tiled cmac_tiled_avx2 keeping 32 frequency bins in 4 pairs of YMM accumulators across all active partitions so output buffers are stored once instead of reloaded/written per partition.
  • Silent ring-slot skipping when an input block has zero energy.
  • Vectorized radix-2 butterfly (fft_stage_avx2) for large stages.

Verification

  • Unit tests: cargo test --release -p victory-hle --lib convolve:: (2/2 passed: a_silent_ring_gives_silence, matches_a_direct_convolution_across_blocks).
**@⁠justadudeinbulgaria** on GitHub · 2026-11-30 23:19 UTC · [original](https://github.com/ToLIManl/VIctory-Hydra/pull/22) `justadudeinbulgaria:pr/avx2-dsp-convolve` → `main` · +234 −12 · 1 files · 1 commits · closed without merging ## Summary Accelerates partitioned FFT audio convolution in `crates/victory-hle/src/modules/dsp/convolve.rs` using runtime-checked AVX2+FMA (`is_x86_feature_detected!("avx2") && is_x86_feature_detected!("fma")`) with automatic scalar fallback: - Register-tiled `cmac_tiled_avx2` keeping 32 frequency bins in 4 pairs of YMM accumulators across all active partitions so output buffers are stored once instead of reloaded/written per partition. - Silent ring-slot skipping when an input block has zero energy. - Vectorized radix-2 butterfly (`fft_stage_avx2`) for large stages. ## Verification - Unit tests: `cargo test --release -p victory-hle --lib convolve::` (2/2 passed: `a_silent_ring_gives_silence`, `matches_a_direct_convolution_across_blocks`).
Accelerate partitioned FFT audio convolution in victory-hle/src/modules/dsp/convolve.rs using runtime-detected AVX2+FMA (is_x86_feature_detected!("avx2") && is_x86_feature_detected!("fma")) with automatic scalar fallback: register-tiled cmac_tiled_avx2 (32 bins per tile in YMM accumulators), silent ring-slot skipping, and vectorized fft_stage_avx2 radix-2 butterflies.
github-bot locked as GitHub sync and limited conversation to collaborators 2026-12-02 17:09:04 +00:00
github-bot closed this pull request 2026-12-02 17:09:04 +00:00
Author
Owner

@⁠ToLIManl on GitHub · 2026-12-01 00:48 UTC · original

Integrated into \main\ in commit \64f4cb9\ (with \Co-authored-by\ attribution).

Verified via \ ictory-hle\ release tests (\modules::dsp::convolve::\ \2 passed; 0 failed).

**@⁠ToLIManl** on GitHub · 2026-12-01 00:48 UTC · [original](https://github.com/ToLIManl/VIctory-Hydra/pull/22#issuecomment-7296753464) Integrated into \main\ in commit \64f4cb9\ (with \Co-authored-by\ attribution). Verified via \ ictory-hle\ release tests (\modules::dsp::convolve::\ \2 passed; 0 failed\).

Pull request closed

This discussion has been locked. Commenting is limited to contributors.
No description provided.