Repository navigation
Conversation
Both were untranslated (the isa_coverage census listed them as missing). The counter at M0[15:0] + offset16 grows / shrinks by the wave's active lane count in one atomic, and every active lane gets its old value. Lane 0 of the console wave does the atomic; in the split wave64 form the halves meet first, so the upper half's earlier LDS stores are done, and the upper half reads the lower half's result. GDS=1 is reported as unsupported. The consume delta goes through a lane read: with `0 - n` straight in the groupshared atomic add, NVIDIA's driver 617.42 refuses the pipeline (E_OUTOFMEMORY), although the DXIL is a plain atomicrmw add of sub 0, n. Tests: translation (address, three option sets, GDS rejected) and GPU runs for wave64 (split on 32-lane GPUs) and wave32. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Owner
Author
|
Upstream PR xcl-dev#918 was closed or merged. |
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.
ds_appendandds_consumewere untranslated (the ISA census,isa_coverage, lists them as missing, and no open PR or issue covers them). Console compute programs use them as a wave-wide counter in LDS, e.g. to compact a list: the counter atM0[15:0] + offset16grows (append) or shrinks (consume) by the number of active lanes in one atomic, and every active lane gets the value from before the change.What is in it
crates/xcl/src/gpu/recomp/emit.rs: lane 0 of the console wave does oneInterlockedAddonxcl_ldswith the wave's EXEC count (nothing for an empty EXEC), and the old value goes to the active lanes through a lane read. In the split wave64 form (32-lane GPUs), the two halves meet before the atomic, so the upper half's earlier LDS stores are done, and the upper half reads the lower half's result (xcl_x_rla_uniform).GDS=1is reported as unsupported, as for the ADDTID forms.0 - n) goes through a lane read. With it straight in the atomic, NVIDIA's driver 617.42 refuses the pipeline (CreateComputePipelineState: E_OUTOFMEMORY), although the DXIL is a plainatomicrmw addofsub 0, n.crates/xcl/src/gpu/recomp/tests.rs: a translation test (offset and M0 address in three option sets, GDS rejected), and GPU tests for wave64 (split on 32-lane GPUs) and wave32: active lanes in both halves, inactive lanes untouched, an empty EXEC changes nothing, a full wave's count.Tested
stable-x86_64-pc-windows-msvc, debug, DXC 1.9.2602.17 (Windows SDK 10.0.26100.0)cargo build --workspace && cargo test --workspace --no-fail-fast -- --test-threads=4: 718 passed, 0 failed, 41 ignoredgpu_geometry_wave32_prefix_count_over_a_mask,gpu_wave32_program_in_wave64_hardware; noXCL_SAMPLE_*variables were set, so the game-data tests ran nothingcargo test -p xcl --lib ds_append_consume: 3 passedRegression run
main:This PR:
The PR's run came second and found the shader / pipeline caches the first one filled: its higher frame count is that, not this change.
Not tested
ds_append/ds_consumeAI use
🤖 Generated with Claude Code
Mirror of xcl-dev#918 (auto-synced, do not edit).