mirror of
https://github.com/ubiquitarianism/leonida.git
synced 2026-11-26 22:40:52 +01:00
[PR #106] wave64_emulate_opt: ds_append and ds_consume always barrier under --wave64-emulate #158
Labels
No labels
bug
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
starred/leonida#158
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/ubiquitarianism/leonida/pull/106
Author: @Andretuta
Created: 11/24/2026
Status: 🔄 Open
Base:
main← Head:old-pr/9838📝 Commits (1)
29cb288wave64_emulate_opt: ds_append and ds_consume always barrier📊 Changes
2 files changed (+12 additions, -0 deletions)
View changed files
📝
tests/semantic/test_wave64_emulate_opt.py(+11 -0)📝
tools/wave64_emulate_opt.py(+1 -0)📄 Description
Original description (mentions and
#Nreferences are disabled; the numbers refer to the old repository):@ItsNotRexed: an exe PR, as you asked.What
ds_appendandds_consumejoin_ALWAYS_BARRIER_OPSintools/wave64_emulate_opt.py, with a unit test on the classification (_insn_may_barrierand_classify_block_body).Why
Under
--wave64-emulatethese two ops hand the LDS counter's old value to every lane through an exchange round, which emitsOpControlBarrier. Without the entry, a block holding one can be classed sync-free in a 128+ thread group andmake_game.py --stages shadersaborts with "unexpected OpControlBarrier in sync-free multi-wave block".@autogenes-sudoreported this on#7154with the#3976translator; an independent check with the same one-line fix is in the#3976thread.Honest scope: today's
origin/maintranslator does not emitds_append/ds_consume(#3976was closed in the org migration), so this prepares the classification for when it lands; it does not change output on current main.Tested
python3 -I tests/semantic/test_wave64_emulate_opt.pyonorigin/main2d53a8055+ this commit: 31 tests OK. Negative control: without the one-line change the new test fails ("False is not true : ds_append"). Synthetic data only; no game files.🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.