Tests: the bridged mask write test also checks that the entry block keeps a barrier #2583
No reviewers
Labels
No labels
accessibility
bug
documentation
duplicate
enhancement
goal:world-load
good first issue
help wanted
invalid
keep-open
off-goal
question
stale
test-only
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/xcl-dev--xcl!2583
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-2583"
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?
@grahamster2 on GitHub · 2026-11-26 00:14 UTC · original
grahamster2:bridged-mask-entry-barrier→main· +10 −4 · 1 files · 1 commits · open#2420 fixed
a_bridged_mask_write_where_one_half_is_elsewhere_meets_no_barrierby counting only the group barriers past the entry block's branch. That== 0check alone also passes for a program with no barriers at all, i.e. one that is no longer the split form the test is about. This adds the other half of #2379's check (at least one group barrier in the entry block) and fixes the test's doc comment, which still says "the only barrier left is the one at the start".@ivall offered to take this stronger check on #2379 after #2420 merged: #2379. Credit for the check goes to @gefydev (#2379).
Cause of the original failure: @Anon64's bisect on #2379 found the first bad commit
fef1d5d, the merge of #2203 (whole-wave branches and dead-SCC elision in split wave64). I reran the bisect independently overmain's first-parent history from #2074's base3da2abb(good) to50a9fde^1(bad), applying #2074's254a058at each step, and got the same commit. #2203 moves the exchange of thes_cbranch_execzcondition into the entry block, so the program has 3 barriers there instead of 1. That is a legitimate change, so the test was stale, not the lowering.What is in it
crates/xcl/src/gpu/recomp/lower_dxil.rs(#[cfg(test)]only): assert>= 1dx.op.barriercall before the first\n br, keep #2420's== 0after it, update the doc comment (10 added, 4 removed)Tested
17efe49; the current headcc426e6differs from it only in the doc comment, the test code is identicalcargo test -p xcl --lib -- --test-threads=4: 1304 passed, 0 failed, 27 ignoredSKIPPED: 24, all "no wave64" except the three per-lane f16 arithmetic / f16 packed / f32 conversions cases (per-lane form: refused)cargo test -p xcl --lib a_bridged_mask_write_where: 1 passed, GPU stage ran (not skipped)self.lw.local_masks = trueinlower_dxil.rschanged tofalse(#2074's fix switched off): the test fails on the after-branch check,left: 2, right: 0Not tested
cargo test --workspace(only-p xcl --lib)AI use
@DavidM1911 on GitHub · 2026-11-26 00:16 UTC · original
Verification on RTX 3060 Ti (Windows 11), branch merged with current
main:cargo test -p xcl --lib: all passed, 0 failed, 26 ignored.Thanks!
— Devin
@fromthemoonx on GitHub · 2026-11-26 01:44 UTC · original
Whole suite on NVIDIA (listed under Not tested): passes. The changed test passes 3 of 3 with no
SKIPPEDline, so both the new entry-block check and the GPU part ran.Tested:
cc426e6merged ontomainb49be18(clean). RTX 3060 12 GB (driver 610.88, 32-lane waves), Ryzen 7 5700X, Windows 11 Pro 26300, Rust 1.100.0 MSVC, DXC 1.9.2602.17, debug.cargo test --workspace --no-fail-fast -- --test-threads=4SKIPPEDlines (no wave64, refused per-lane forms)a_bridged_mask_write_where_one_half_is_elsewhere_meets_no_barrier --exact --nocapture, 3 runsSKIPPEDNot tested: a lowering that drops the entry-block barrier (there is none to try it on, as the description says); AMD.
AI use: Claude Code (Claude Opus 5.5) ran the tests and wrote this report.
@grahamster2 on GitHub · 2026-11-26 06:11 UTC · original
The "PR description" check fails only on the smoke requirement: the diff is a
#[cfg(test)]change insidelower_dxil.rs, which the check counts as a runtime file, so it asks for anxcl-smokepair. The rest of the description passes. Nothing in the runtime changes, so a retail run would measure nothing about this PR and I have not faked one. Could a maintainer review the diff and apply thetest-onlylabel? That waives the smoke check for this head, as CONTRIBUTING.md describes. The current head iscc426e6.AI use: Claude Code (Claude Sonnet 5.5) wrote this reply.
View command line instructions
Checkout
From your project repository, check out a new branch and test the changes.Merge
Merge the changes and update on Forgejo.