Skip to content

Recompiler: order split-wave64 LDS safely - #254

Draft
bmjask wants to merge 3 commits into
stack/250-safe-barrier-policyfrom
stack/251-order-split-wave64-lds
Draft

bmjask wants to merge 3 commits into
stack/250-safe-barrier-policyfrom
stack/251-order-split-wave64-lds

Conversation

@bmjask

@bmjask bmjask commented Nov 26, 2026

Copy link
Copy Markdown
Owner

Stacked on #253.

This is an internal draft stack in bmjask/xcl; it is not an upstream merge request.

What and why

This unit isolates recompiler: order split-wave64 lds safely as one reviewable step in the redesign.

What is in it

  • 66220b80 is part of this logical unit.
  • 08f64889 is part of this logical unit.
  • e2f268f5 is part of this logical unit.

Tested

The complete rewritten tail was verified tree-identical to integrated commit 963dcdca. Tests were not rerun during stack packaging.

Regression run

Not run during stack packaging.

Not tested

  • Windows MSVC build and test suite
  • D3D12 GPU execution
  • scripts/smoke.ps1 main/head comparison

AI use

Codex, GPT-5.6-sol, rebased the existing logical change onto the cleaned stack, verified final tree identity, created the stack branch, and drafted this description.

@bmjask
bmjask force-pushed the stack/251-order-split-wave64-lds branch 3 times, most recently from 2b6bb14 to 4fcd909 Compare November 27, 2026 05:14
@bmjask
bmjask force-pushed the stack/250-safe-barrier-policy branch from 2b9b53f to aba7803 Compare November 27, 2026 12:35
@bmjask
bmjask force-pushed the stack/251-order-split-wave64-lds branch from 4fcd909 to 55a8d6a Compare November 27, 2026 12:35
@bmjask
bmjask force-pushed the stack/250-safe-barrier-policy branch from aba7803 to aa4e38d Compare November 27, 2026 12:44
@bmjask
bmjask force-pushed the stack/251-order-split-wave64-lds branch 2 times, most recently from 277ff9d to dbcac65 Compare November 27, 2026 12:52
bmjask added 3 commits November 27, 2026 17:30
Adapt the default-on LDS ordering and read-run elision from PR xcl-dev#1252 to the current emitter while preserving coherent-memory, barrier, and wave-local remap state.

Assisted-by: Codex (GPT-5.6-sol)
The direct per-instruction and per-lane lowerings do not yet order real LDS accesses between the two hardware halves. Refuse that unsafe combination so runtime routing uses the HLSL path's ordered meetings, while retaining native waves, geometry, and DS cross-lane operations.

Assisted-by: Codex (GPT-5.6-sol)
Fused split-wave64 reduction tails emit their own guaranteed cross-half meeting, but did not record it in the LDS ordering state. Mark those exchanges as Met so a following LDS access does not pay for a redundant meeting.

Assisted-by: Codex (GPT-5.6-sol)
@bmjask
bmjask force-pushed the stack/250-safe-barrier-policy branch from 81407b1 to f9f1762 Compare November 28, 2026 01:35
@bmjask
bmjask force-pushed the stack/251-order-split-wave64-lds branch from dbcac65 to e909e14 Compare November 28, 2026 01:35
@github-actions

github-actions Bot commented Dec 1, 2026

Copy link
Copy Markdown

Nothing has happened on this PR for 3 days, so it is marked stale and will be closed in 4 days. A push or a comment takes the mark off: rebase it onto main if it conflicts, and say in one line what it still fixes. If it only waits for a maintainer, a comment saying so is enough.

@github-actions github-actions Bot added the stale label Dec 1, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant