Skip to content

docs: DPP row was run on an Apple M2 with MoltenVK - #4726

Open
bobcatchris wants to merge 1 commit into
ItsNotRexed:mainfrom
bobcatchris:docs/apple-m2-dpp
Open

bobcatchris wants to merge 1 commit into
ItsNotRexed:mainfrom
bobcatchris:docs/apple-m2-dpp

Conversation

@bobcatchris

Copy link
Copy Markdown
Contributor

The DPP row in docs/design.md said the statement-per-op fix had not been run on a Mac. It has: I ran cs_dpp_ops on this Apple M2 (Mac14,3, macOS 26.4, MoltenVK 1.4.2, subgroup 4..32) both with #3086's --subgroup-temps behaviour and without it, and it passed in both modes with no new failures in the full GPU suite versus main. One-line doc correction; no code change.

AI-assisted.

@Kam471 Kam471 left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ran this at 14eb1ef87 on Windows 11: test_docs_design_rows.py 2 OK, test_docs_links.py 6 OK; git diff --check clean.

The DPP row now records the Apple M2 / MoltenVK run beside the existing measurement. I cannot re-run the Apple hardware; the row and links validate. No blocking issue.

@memorypressure

Copy link
Copy Markdown

The content is a clean one-line update to the DPP row, but the new backticked --subgroup-temps makes tests/test_docs_cli_flags.py fail — reproduced: green at base 98fa503, red on the head with exactly that flag at docs/design.md:247. The flag exists in no tracked source file (it lands with #3086, unmerged), and the guard requires every backticked flag in docs to exist in code. Dropping the backticks (or landing after #3086) clears it. The M2/MoltenVK measurement itself cannot be reproduced here. AI-assisted: yes. Tested on Linux (RTX 5080 host, CPU-only run).

@kapitche

Copy link
Copy Markdown
Contributor

Tested 14eb1ef merged with main 98fa503 on Linux (WSL), Python 3.12.16 (-I): concern

  • tests/test_docs_design_rows.py, test_docs_env_vars, test_docs_links, test_docs_list_items, test_docs_pr_template, test_docs_python_deps, test_docs_repo_paths, test_docs_table_ids, test_docs_table_rows: OK.
  • tests/test_docs_cli_flags.py: FAILED (1 of 3). flags in the docs that no source file mentions: docs/design.md:247 --subgroup-temps. With upstream/main's docs/design.md restored the same test passes (3 tests, OK), so the failure comes from this change. grep -rn subgroup-temps over the branch finds only that docs line: the flag does not exist on main, and Translator: --subgroup-temps keeps subgroup operations out of SPIRV-Cross's short-circuit && / ?: (MoltenVK) #3086 (which adds it) is still open. This will go green once Translator: --subgroup-temps keeps subgroup operations out of SPIRV-Cross's short-circuit && / ?: (MoltenVK) #3086 merges first, or if the sentence is reworded to not name the flag.
  • Also docs/testing.md:442 still lists cs_dpp_ops as failing on a Mac with MoltenVK 1.4.2; if the M2 run now passes it with the flag, that row may need the same update (not checked, needs the Mac).
  • Not checkable here: the Apple M2 / Mac14,3 / macOS 26.4 / MoltenVK 1.4.2 run itself. The path runtime/test/shaders/cs_dpp_ops.asm exists.

@bobcatchris

Copy link
Copy Markdown
Contributor Author

Fixed in 4f73016: the sentence now reads "both with and without the subgroup-temps option (PR #3086)", so no backticked flag is introduced ahead of #3086.

python -I tests/test_docs_cli_flags.py: 3 tests OK; python -I tests/test_docs_design_rows.py: 4 tests OK; git diff --check clean.

On the docs/testing.md cs_dpp_ops row: left as is deliberately. It describes stock main on MoltenVK 1.4.2, where the failure is real until #3086 lands; this PR only records the M2 run that used #3086's flag. The row and this design-row wording should flip together when #3086 merges.

AI-assisted.

@bobcatchris

Copy link
Copy Markdown
Contributor Author

Both findings on 14eb1ef8 are addressed at 4f730166:

  • the sentence no longer spells the option as a flag ("the subgroup-temps option", not --subgroup-temps), so tests/test_docs_cli_flags.py → 3 tests OK on this head (it fails on 14eb1ef8, as reported);
  • kapitche's second point, docs/testing.md: its cs_dpp_ops row still blamed MoltenVK 1.4.2. That row's cause is what the eager stores (SHADER-529) remove, and the DPP row's Apple M2 run passes on 1.4.2, so the row now names the translator change as the fix and keeps MoltenVK main/KosmicKrisp as the way around it on builds that predate it.

Docs tests at HEAD: test_docs_table_rows 2, test_docs_links 6, test_docs_list_items 2, test_docs_cli_flags 3, test_docs_design_rows 4 — all OK. The M2/MoltenVK measurement itself still cannot be reproduced without a Mac, as noted.

AI-assisted.

@kapitche

Copy link
Copy Markdown
Contributor

Tested 07d907a merged with main de67135 on Linux (WSL), Python 3.12.16 (-I): pass

Re-check of my earlier concern at 14eb1ef:

  • tests/test_docs_cli_flags.py failure (docs/design.md:247 --subgroup-temps): resolved. The sentence now says "the subgroup-temps option (PR Translator: --subgroup-temps keeps subgroup operations out of SPIRV-Cross's short-circuit && / ?: (MoltenVK) #3086)" without the dashed flag, and the test passes (3 tests, OK). grep -rn -- --subgroup-temps finds nothing in the branch.
  • docs/testing.md cs_dpp_ops row still listing a failure on MoltenVK 1.4.2: resolved. The row now says it is fixed in the translator (Gen.eager, SHADER-529) and passes on MoltenVK 1.4.2, and points at the design.md DPP row.

All tests/test_docs_*.py (10 files) pass. Negative control: with main's docs/design.md and docs/testing.md restored the docs tests pass too (docs-only change, so there is nothing for them to fail on main); the previous failure was the dashed flag name, which is gone.

Not checkable here: the Apple M2 / Mac14,3 / macOS 26.4 / MoltenVK 1.4.2 run itself.

@KkelebekK

Copy link
Copy Markdown

Reviewed 07d907a: docs-only, merges cleanly with main af70fc7, docs tests pass (30). I could not run an M2, but the M2 data on #3086 says this machine never showed the failure: the 2026-11-22 19:24Z comment says it "did not reproduce the lane-1 cs_dpp_ops error ... either before or after this change", and the 2026-11-23 03:20Z one says cs_dpp_ops passes with the subgroup-temps option and with it forced off. Those runs were on #3086 heads; 27a26d61 does not contain SHADER-529 (Gen.eager, 4d65bae). So the M2 run is a no-regression check, not evidence that SHADER-529 fixes the failure, which was measured on an M3 Max. The new testing.md wording ("Fixed in the translator ... passes on MoltenVK 1.4.2 too (measured on an Apple M2)") is stronger than that. Could you say which commit the M2 ran, note that it passes without the fix as well, and keep the MoltenVK 1.4.2 row until a Mac that fails (the M3 Max) passes cs_dpp_ops on main with SHADER-529? #3086 also edits this row, so expect a conflict when it lands.

@bobcatchris

Copy link
Copy Markdown
Contributor Author

Re-review request at 07d907a8. Both findings are fixed: the sentence no longer spells the option as a flag (test_docs_cli_flags → 3 OK, red on 14eb1ef8), and docs/testing.md's cs_dpp_ops row now names the eager stores (SHADER-529) as the fix instead of blaming MoltenVK 1.4.2. Docs tests: table_rows 2, links 6, list_items 2, cli_flags 3, design_rows 4 — all OK. AI-assisted.

@bobcatchris

Copy link
Copy Markdown
Contributor Author

@KkelebekK scoped at 5c02ead7: the cell now says the M2 never showed the failure, so its pass on MoltenVK 1.4.2 at 27a26d61 is a no-regression check, not confirmation of SHADER-529; it cites 4d65bae6 for Gen.eager and keeps the row until an M3 Max passes cs_dpp_ops on a build with SHADER-529. Builds before it still need MoltenVK main or KosmicKrisp. All 10 tests/test_docs_*.py pass.

AI-assisted.

@kapitche

Copy link
Copy Markdown
Contributor

Tested 5c02ead merged with main 3faac55 on Linux (WSL2), Python 3.12.16: pass.
Docs-only (design.md DPP row, testing.md cs_dpp_ops row). Ran all 10 tests/test_docs_*.py (all OK) and tests/semantic/test_dpp_eager_subgroup.py (7 tests OK).
Negative control: none applicable, no code or new tests.
Checked that the references resolve: commit 4d65bae is "run DPP's ballot and shuffle in every lane under SPIRV-Cross (SHADER-529)" and SHADER-529 appears in both docs. Small note: the design.md text says the M2 run passed "with and without the subgroup-temps option (PR #3086)", but that PR is still open and no --subgroup-temps appears anywhere else on main, so the wording may confuse readers until it lands. The M2/M3 Mac measurements themselves can't be checked from Linux.

@kapitche

Copy link
Copy Markdown
Contributor

Tested 9eaa511 merged with main 1cc6e3c on Linux (WSL2, Python 3.12.16): pass

Re-check after the push since my pass on 5c02ead. Docs-only change (one row of docs/design.md, the DPP row; the PR diff against its base is 1 file, 1 line).

  • All 10 tests/test_docs_*.py plus tests/test_ci_registration.py: OK, run as python -I <file>.
  • python -I -m unittest discover -s tests/semantic -p test_dpp_eager_subgroup.py: 7 tests OK.
  • Negative control: with docs/design.md taken from main, test_docs_design_rows.py and test_docs_cli_flags.py also pass, so these doc tests do not discriminate between the old and new wording; this is expected for a prose change. I did not check the claims about the Apple M2 / MoltenVK run (no Mac here).

The DPP row said `tests/semantic/test_dpp_eager_subgroup.py` had not been run on a Mac. It now has:
an Apple M2 (Mac14,3, macOS 26.4, MoltenVK 1.4.2), where `cs_dpp_ops` passes and the full GPU suite
shows no new failures versus main (PR ItsNotRexed#3086). Replaces the "not yet run" clause; no other row changes.

AI-assisted.
@bobcatchris
bobcatchris force-pushed the docs/apple-m2-dpp branch 2 times, most recently from aad267b to a117bba Compare November 23, 2026 16:10
@bobcatchris

Copy link
Copy Markdown
Contributor Author

Re-applied onto current main (8575d36ed) as one commit, a117bba16: the old branch conflicted because the DPP row changed under it (main added the SHADER-1016 half rule and split the EXEC row). The change is now exactly the one clause it was meant to be — ; not yet run on a Mac. in the DPP row becomes the measured Apple M2 result — with main's new row text otherwise untouched.

python -I tests/test_docs_table_rows.py OK at this head. The EXEC/Execution-model rows are main's, unchanged by this branch.

AI-assisted.

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.

5 participants