Repository navigation
Tests: the bridged mask write test also checks that the entry block keeps a barrier - #2583
Open
grahamster2 wants to merge 1 commit into
Open
grahamster2 wants to merge 1 commit into
grahamster2 wants to merge 1 commit into
Conversation
… block xcl-dev#2420 fixed this test after xcl-dev#2203 (whole-wave branches in split wave64) put the exchange of the `s_cbranch_execz` condition into the entry block, by counting only the barriers past the entry block's branch. A program that is no longer the split form (no barrier anywhere) passes that check too, so also require at least one group barrier in the entry block, as xcl-dev#2379 did, and drop the doc comment's "the only barrier left is the one at the start", which has not held since xcl-dev#2203. With `Lw::local_masks` forced off (xcl-dev#2074's fix switched off) the test still fails, on 2 barriers past the branch. Assisted-by: Claude Code (Claude Opus 5.5)
Contributor
|
Verification on RTX 3060 Ti (Windows 11), branch merged with current
Thanks! — Devin |
|
Whole suite on NVIDIA (listed under Not tested): passes. The changed test passes 3 of 3 with no Tested:
Not 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. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
#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 (comment). 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 Tests: check divergent block barriers in a_bridged_mask_write #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(Recompiler: a bridged mask write in the split form meets no barrier #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