Skip to content

Recompiler: use barriers for one-wave split wave64 groups - #285

Draft
bmjask wants to merge 1 commit into
stack/281-restore-retained-pipelinesfrom
stack/282-one-wave-barriers
Draft

bmjask wants to merge 1 commit into
stack/281-restore-retained-pipelinesfrom
stack/282-one-wave-barriers

Conversation

@bmjask

@bmjask bmjask commented Nov 26, 2026

Copy link
Copy Markdown
Owner

Stacked on #284.

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

What and why

This unit isolates recompiler: use barriers for one-wave split wave64 groups as one reviewable step in the redesign.

Upstream provenance

This adapts xcl-dev/xcl commit 6ee3743c by grahamster2, including its test structure, and is retained as reconciliation work.

What is in it

  • 9b4ae3d3 is the rebased logical commit.

Tested

The complete rewritten stack 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 commit onto the cleaned stack, verified final tree identity, created the stack branch, and drafted this description.

@bmjask
bmjask force-pushed the stack/282-one-wave-barriers branch 3 times, most recently from 7e37fdb to ffb34d8 Compare November 27, 2026 05:14
@bmjask
bmjask force-pushed the stack/281-restore-retained-pipelines branch from 89d830f to a95865e Compare November 27, 2026 12:35
@bmjask
bmjask force-pushed the stack/282-one-wave-barriers branch 2 times, most recently from 6d0af66 to ceaab99 Compare November 27, 2026 12:44
A hardware group containing one logical console wave has only the two synchronized wave32 halves, so its cross-half exchanges can use a group barrier instead of polling atomic arrival counters. Genuinely multi-wave groups keep the bounded counter protocol, while XCL_WAVE64_SPIN=1 can still force it for diagnostics.

Adapted from xcl-dev/xcl commit 6ee3743 by grahamster2, including its test structure, onto the wave-local remapping path.

Assisted-by: Codex (GPT-5.6-sol)
@bmjask
bmjask force-pushed the stack/281-restore-retained-pipelines branch from 8de6ef6 to bb697fa Compare November 27, 2026 12:52
@bmjask
bmjask force-pushed the stack/282-one-wave-barriers branch from ceaab99 to 84d64c6 Compare November 27, 2026 12:52
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