Skip to content

[codex] Unify GPU renderer FMA detection#71

Closed
adpena wants to merge 1 commit into
mainfrom
codex/molt-gpu-clippy-gate-main-20260706
Closed

[codex] Unify GPU renderer FMA detection#71
adpena wants to merge 1 commit into
mainfrom
codex/molt-gpu-clippy-gate-main-20260706

Conversation

@adpena

@adpena adpena commented Jul 6, 2026

Copy link
Copy Markdown
Owner

Summary

  • moves duplicated renderer FMA pattern detection into render::detect_fma_pattern
  • routes CUDA, HIP, MSL, OpenCL, and WGSL through the shared detector
  • removes the five duplicated nested Add/Mul scans called out by the board's molt-gpu clippy follow-up

Validation

  • 20260706T154656-molt-gpu-clippy-all-targets-stable-20260706-d887354bd1af46e9: cargo clippy -p molt-gpu --all-targets --all-features -- -D warnings passed
  • git diff --check -- runtime/molt-gpu/src/render/... passed
  • .venv\Scripts\python.exe tools\check_rustfmt.py --changed passed for the six changed Rust files

Notes

  • 20260706T154817-molt-gpu-tests-after-fma-detector-20260706-0bd7339d2de54954 did not reach test assertions. It failed during rustc metadata emission with Windows os error 1450 while the 2026-07-06 board has an emergency witness-exclusive heavy-build hold active, so I did not launch another heavy cargo proof.

Move the duplicated Add(Mul(..), ..) detector into render::detect_fma_pattern and route CUDA, HIP, MSL, OpenCL, and WGSL through that single authority.

Proof: 20260706T154656-molt-gpu-clippy-all-targets-stable-20260706-d887354bd1af46e9 passed cargo clippy -p molt-gpu --all-targets --all-features -- -D warnings. Also passed git diff --check and tools/check_rustfmt.py --changed.

Note: 20260706T154817-molt-gpu-tests-after-fma-detector-20260706-0bd7339d2de54954 did not reach assertions; it failed during rustc metadata emission with Windows os error 1450 under the 2026-07-06 witness-exclusive heavy-build hold.
@adpena

adpena commented Jul 6, 2026

Copy link
Copy Markdown
Owner Author

Superseded by clean signal-only PR #72, which cherry-picked only the six renderer FMA detection files onto current origin/main and has merged. Closing this stale draft branch to avoid carrying old merge-history baggage.

@adpena adpena closed this Jul 6, 2026
@adpena adpena deleted the codex/molt-gpu-clippy-gate-main-20260706 branch July 6, 2026 16:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant