Repository navigation
Conversation
|
Per |
2a2d704 to
355c7cf
Compare
|
Independent verification, merged onto current Machine: Windows 11, Ryzen 9 7900X + RTX 3060 Ti; Rust stable MSVC, debug; DXC dxcompiler 1.8.2502.11. The PR breaks an existing GPU test. The clamped dot products now emit
So the hardware lowering is fine for the wrap case but the clamp path needs a different shape (e.g. keep the AI use: test runs by Devin (Cognition, SWE-2); no code changes. |
|
Test run of Tested
Not tested
AI use
|
355c7cf to
d3ea666
Compare
|
Thanks for the feedback and confirmation on the DXC version discrepancy (@DavidM1911, @throny). The root cause of the DXC internal compiler error was AST scalar lowering in CGExprScalar.cpp: when a built-in intrinsic like dot4add_u8packed or dot4add_i8packed is directly enclosed in a 64-bit widening cast as an operand of a binary addition, DXC fails during scalar promotion in certain compiler builds (such as DXC 1.8.2502.11 and early Windows SDK 10.0.26100.0). We resolved this by isolating the intrinsic lowering in two dedicated preamble helpers:
Both gpu_dp4a_dot_products_hardware_lowering and gpu_clamp_and_omod_per_instruction compile and execute cleanly on hardware. Pushed to branch �rc-dp4a-uma as commit d3ea666. CI check is green. |
|
Rerun on the new head Tested
Not tested
AI use
|
d3ea666 to
df490c1
Compare
df490c1 to
3ca81fe
Compare
|
@throny Rebased onto |
|
@UnkwnDev the rebased head AI use: Claude Code (Claude Opus 5.5). |
3ca81fe to
9f5225e
Compare
|
Updated rebased head to |
9f5225e to
3f841cb
Compare
|
@throny Rebased onto Verification on Intel Arc A770 (DXC
|
|
Test report for exact head Tested
main: PR: Not tested: AMD, the head merged onto current AI use: Claude Code (Claude Opus 5.5) ran this and wrote the report; the diff was read for safety before it was built. |
|
Re-verification on RTX 3060 Ti (Windows 11): the new head now has a merge conflict with current |
3f841cb to
35ad5fe
Compare
|
@DavidM1911 @throny Rebased onto Verification on Windows (Intel Arc A770, DXC 1.9.2602.17,
|
|
Nothing has happened on this PR for 3 days, so it is marked |
|
No open or merged PR makes the same change. Main still lowers the clamped AI review: Claude Code (Claude Opus 5.5), diffs read only, not built or run; not checked by a human. |
This pull request lowers clamped 8-bit dot products (
v_dot4_u32_u8andv_dot4_i32_i8) directly to hardware DP4a intrinsics incrates/xcl/src/gpu/recomp/emit.rs:dot4_u8_clampanddot4_i8_clamplowering directly to SM 6.4dot4add_u8packedanddot4add_i8packedinstead of 4-iteration scalar software loops.v_dot4_u32_u8withCLAMP, accumulatescviadot4add_u8packed(a, b, c)and clamps viaselect(r < c, 0xFFFFFFFFu, r)without 64-bit casts.v_dot4_i32_i8withCLAMP, isolatesint d = dot4add_i8packed(a, b, 0);before widening insat_i32((int64_t)d + (int64_t)(int)c)to avoid DXC scalar promotion ICEs.gpu_dp4a_dot_products_hardware_loweringincrates/xcl/src/gpu/recomp/tests.rs.Per review on #985, sparse UMA chunk scanning was split into separate PR #1058. Rebased onto
origin/main(568e7db) at commit9f5225e.Tested
9f5225e:cargo test -p xcl --lib gpu_dp4a_dot_products_hardware_lowering -- --test-threads=1: 1 passedcargo test -p xcl --lib gpu_bvh_triangle_types_2_and_3 -- --test-threads=1: 1 passedcargo test -p xcl --lib gpu_clamp_and_omod_per_instruction -- --test-threads=1: fails atCreateComputePipelineState(E_INVALIDARG0x80070057) on Intel Arc A770 because this test usesV_ADD_F64(known non-fp64 Arc baseline; previously passed on RTX 4080 per@thronyatd3ea666/77bee48).Regression run
Prior head
df490c1(smoke rerun needed on rebased head9f5225e):main(beaa245):PR (
df490c1):Not tested
scripts/smoke.ps1on rebased head9f5225e(no retail title on author machine)AI use