Skip to content

[codex] Unify GPU renderer FMA detection#72

Merged
adpena merged 1 commit into
mainfrom
codex/gpu-fma-detector-clean-20260706
Jul 6, 2026
Merged

[codex] Unify GPU renderer FMA detection#72
adpena merged 1 commit into
mainfrom
codex/gpu-fma-detector-clean-20260706

Conversation

@adpena

@adpena adpena commented Jul 6, 2026

Copy link
Copy Markdown
Owner

Clean signal-only cherry-pick from stale PR #71. This branch is current origin/main plus one exact commit (749a706) touching only the six renderer files.\n\nWhat changed:\n- Adds render::detect_fma_pattern as the single shared ADD(MUL(a, b), c) detector.\n- Keeps target-specific dtype admission and source rendering in CUDA, HIP, MSL, OpenCL, and WGSL.\n- Deletes the five duplicated local detector scans.\n\nProof:\n- git diff --check: rc=0\n- uv run --active --no-sync --project . --python 3.12 python tools/check_rustfmt.py --changed: rc=0\n- proof queue 20260706T160717-pr71-clean-molt-gpu-clippy-20260706-9c2e0b62796b46fb: cargo clippy -p molt-gpu --all-targets --all-features -- -D warnings rc=0 elapsed=43.8s\n\nSupersedes stale draft PR #71 without force-updating that branch.

Move the duplicated ADD(MUL(a, b), c) scan into render::detect_fma_pattern while keeping renderer-specific dtype narrowing and source rendering in CUDA/HIP/MSL/OpenCL/WGSL. This lands the hand-picked signal from the stale PR71 branch without its merge-history baggage.

Proof: git diff --check rc=0; tools/check_rustfmt.py --changed rc=0; proof queue 20260706T160717-pr71-clean-molt-gpu-clippy-20260706-9c2e0b62796b46fb cargo clippy -p molt-gpu --all-targets --all-features -- -D warnings rc=0 elapsed=43.8s.
@adpena adpena merged commit 0374b90 into main Jul 6, 2026
7 of 10 checks passed
@adpena adpena deleted the codex/gpu-fma-detector-clean-20260706 branch July 6, 2026 16:10
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