Skip to content

feat(wave): ESP32-S3 PIE SIMD backend for 2D wave PDE update kernel (split from #3097) #3107

Open

Description

@zackees

Split from the now-closed §7 umbrella (#3097). Sub-task of meta #3098.

Target

ESP32-S3 PIE (Processor Instruction Extension) — Xtensa SIMD, 128-bit registers, 16-bit integer ops.

Approach

  • Reuse existing FastLED PIE infrastructure — search the codebase for EE_VADDS, xt_simd for prior art.
  • New TU: src/fl/math/wave/wave_simulation_real_simd_pie.cpp.hpp, gated on ESP32-S3 platform detection.
  • Reuse the dispatcher landed in the host-SIMD sub-issue (filed parallel to this one).

Acceptance

  • PIE output bit-equal to scalar output (verified on QEMU or hardware via AutoResearch).
  • Microbench on the ESP32-S3 shows the speedup matches the lane width (~4–8× expected).

Dependencies

  • Host SIMD sub-issue (filed parallel) should land first — establishes the dispatcher API.

Parent meta: #3098
History: split from #3097

Activity

  1. zackees commented on Jun 15, 2026

    @zackees
    MemberAuthor

    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.

  2. zackees commented on Jun 15, 2026

    @zackees
    MemberAuthor

    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.

  3. zackees commented on Aug 20, 2026

    @zackees
    MemberAuthor

    Burn-down disposition: DEFER ? platform backend is still intentionally gated and its prerequisite is not implemented.

    Evidence:

    Restart criteria:

    1. Resolve feat(wave): host SIMD backend for 2D wave PDE update kernel — SSE2/AVX2/NEON (split from #3097) #3106's dispatcher/parity contract or define a platform-independent replacement.
    2. Complete [meta] Wave2D perf pipeline — autoresearch benchmark + sanity calibration + PSRAM storage + algorithmic follow-ups #3113's algorithm choice and retain the scalar PDE as a long-term hot path.
    3. Attach an S3, capture trusted scalar --perf-wave2d baselines, and add saturation/boundary/stencil parity vectors.
    4. Implement the PIE path behind S3 capability gates using maintained platform SIMD abstractions.
    5. Prove bit equality and material end-to-end speedup on hardware; close as not worthwhile if the gain does not justify the backend.
  4. added
    deferred
    on Aug 20, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    deferred

    Type

    No type

    Projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions