You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
feat(wave): host SIMD backend for 2D wave PDE update kernel — SSE2/AVX2/NEON (split from #3097) #3106
#3111 is researching whether super-sample (the primary motivator for SIMD throughput on this kernel) should be replaced wholesale by an algorithmic alternative (screen-space anti-aliasing + higher-order stencils, spectral methods, LBM, procedural waves, etc.). If the research lands on a 10×+ algorithmic win, we'd be writing SIMD for the wrong kernel.
Resume here once #3111 has produced its recommendation document and the FastLED-3098-family scalar kernel is confirmed as the long-term path.
Now tracked under parent meta #3113 (Wave2D perf pipeline). The hold for this SIMD sub-issue stays in place — the meta gates SIMD on first landing the perf benchmark (#3113 Task 1) and the algorithmic candidates from the #3112 research doc.
Existing generic fl::simd SSE2/AVX2/NEON primitives reduce backend scaffolding but do not satisfy this issue's bit-exact wave-kernel parity or 4?8? measured-speedup acceptance by themselves.
Land/evaluate at least the compact O(h?) and one other top algorithmic candidate, then explicitly retain the scalar PDE kernel as a long-term hot path.
Add a host microbenchmark that can report scalar vs SSE2 vs AVX2/NEON on identical 64?64 inputs.
Implement through fl::simd, with scalar fallback and bit-for-bit parity across saturation/boundary/stencil cases.
Require a reproducible material speedup on each enabled ISA; otherwise close as not worthwhile rather than carrying dispatch complexity.
This preserves the parent meta's sequencing decision and prevents premature optimization of a potentially superseded kernel.
Activity
zackees commentedon Jun 15, 2026
Hold this work until #3111 lands.
#3111 is researching whether super-sample (the primary motivator for SIMD throughput on this kernel) should be replaced wholesale by an algorithmic alternative (screen-space anti-aliasing + higher-order stencils, spectral methods, LBM, procedural waves, etc.). If the research lands on a 10×+ algorithmic win, we'd be writing SIMD for the wrong kernel.
Resume here once #3111 has produced its recommendation document and the FastLED-3098-family scalar kernel is confirmed as the long-term path.
research(wave): state-of-the-art survey for 2D wave PDE alternatives (#…
zackees commentedon Jun 15, 2026
Now tracked under parent meta #3113 (Wave2D perf pipeline). The hold for this SIMD sub-issue stays in place — the meta gates SIMD on first landing the perf benchmark (#3113 Task 1) and the algorithmic candidates from the #3112 research doc.
zackees commentedon Aug 20, 2026
Burn-down disposition: DEFER ? this remains intentionally gated work, not a ready implementation issue.
Current evidence:
WaveSimulation2D_Real::update()remains scalar.--perf-wave2dvia chore(autoresearch): use --perf-XX / --test-XX flag prefixes (#3124) #3742), and SRAM-default storage landed in fix(wave): switch WaveSimulation2D_Real grids from vector_psram to SRAM (closes #3114) #3117. However, there is still no committed Wave2D baseline document for host/S3/C6/Teensy/P4, and parent [meta] Wave2D perf pipeline — autoresearch benchmark + sanity calibration + PSRAM storage + algorithmic follow-ups #3113 remains open.fl::simdSSE2/AVX2/NEON primitives reduce backend scaffolding but do not satisfy this issue's bit-exact wave-kernel parity or 4?8? measured-speedup acceptance by themselves.Restart criteria:
--perf-wave2dbaselines, including host scalar FivePoint/NinePoint results and the target embedded platforms from [meta] Wave2D perf pipeline — autoresearch benchmark + sanity calibration + PSRAM storage + algorithmic follow-ups #3113.fl::simd, with scalar fallback and bit-for-bit parity across saturation/boundary/stencil cases.This preserves the parent meta's sequencing decision and prevents premature optimization of a potentially superseded kernel.