Repository navigation
Tests: check integer min3 / max3 / med3 on the GPU - #1199
Open
jesuarchive wants to merge 1 commit into
Open
jesuarchive wants to merge 1 commit into
jesuarchive wants to merge 1 commit into
Conversation
v_min3/max3/med3 for i32, u32 and i16 were translated but had no GPU test. The new test runs every triple of six values that order differently as signed and unsigned (with repeats): 0, 1, the signed maximum and minimum, -1 and a middle value, in 32 bits and, for the _i16 forms, on the low halves while the high halves hold other values. Only the low half of an _i16 result is checked. It fails if v_min3_i32 compares unsigned, if v_med3_u32 returns the maximum, or if v_max3_i16 compares unsigned. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Contributor
|
Independent verification on current Machine: Windows 11, Ryzen 9 7900X + RTX 3060 Ti; Rust stable MSVC, debug; DXC 1.8.2502.11.
AI use: test runs by Devin (Cognition, SWE-2); no code changes. |
|
Test report for head Tested
Not tested: the high half and AI use: the tests were run and this report was written by an AI agent, Claude Code (Claude Opus 5.5), on the hardware above. The numbers are copied from the actual test output. |
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.
v_min3/max3/med3fori32,u32andi16are translated (emit.rs) but had no GPU test. The open test PRs cover thef32,f16andu16forms (#686, #738, #739). This adds the integer ones, test-only.What is in it
crates/xcl/src/gpu/recomp/tests.rs:gpu_min3_max3_med3_integers. It runs triples of six values that order differently as signed and unsigned, with repeats: 0, 1, the signed maximum and minimum, -1 and a middle value. These are 32-bit for thei32/u32forms. For the_i16forms they sit in the low halves and the high halves hold other values. Only the low half of an_i16result is checked, since what a 16-bit VALU op leaves in the high half is discussed in Tests: 16-bit VALU results keep the other half of VDST #1115. Runs on every adapter throughgpu_waves().Tested
stable-x86_64-pc-windows-msvc; DXC 1.9.2602.17 from the Windows SDK; debug.cargo test --workspace -- --test-threads=4: 742 passed, 0 failed, 41 ignored (SKIPPED GPU tests:gpu_geometry_wave32_prefix_count_over_a_mask,gpu_wave32_program_in_wave64_hardware, no wave64).main47efa2eon the same machine: 741 / 0 / 41, the same two skipped.cargo test -p xcl --lib -- gpu_min3_max3_med3_integers --nocapture --test-threads=1: 1 passed, not skipped (wave32 pass only on this adapter).emit.rs, reverted:v_min3_i32comparing unsigned,v_med3_u32returning the maximum,v_max3_i16comparing unsigned. The test fails on each, naming the instruction.Regression run
Not tested
_i16results (see above);OP_SELon the_i16forms.AI use