upleb.uk

Public git repos — served from a NIP-34 GRASP relay at git.upleb.uk

summaryrefslogtreecommitdiff
path: root/runtime/src/thread_stacks.cpp
diff options
context:
space:
mode:
authorItsNotRexed <300290919+ItsNotRexed@users.noreply.github.com>2026-11-23 01:20:06 -0500
committerItsNotRexed <300290919+ItsNotRexed@users.noreply.github.com>2026-11-23 01:20:06 -0500
commit3faac557b1584d39004357918e60325b4d4ff0fe (patch)
treeb1852b7c0764a5cf97944f85eceed44814b62981 /runtime/src/thread_stacks.cpp
parentd974c88a54d7bd5158fd5a31ff74d7606cd74a43 (diff)
rdna2spirv: one bounds branch per s_buffer_load, not one per dword (cascade-shadow CS: 17,346 -> 7,710 blocks)
A run-time NUM_RECORDS bound gave every dword its own selection, 2N blocks per s_buffer_load_dwordxN: 11,000 of the 17,000 blocks of the cascade-shadow compute shader NVIDIA's compiler could not build in 16 GB (mem2reg's cost grows with blocks x live registers). The per-dword ends grow with i, so 'dword i in range' implies every earlier dword is: one selection on dword 0, and inside it each dword reads at index i when in range, else at index 0 (in range there), then selects 0. Same values, and still nothing outside the bound is read; a dword may now be read twice, so the SMEM hardware-rule tests compare the set of addresses read. The strict SMEM evaluator models OpSelect %uint. semantic suite 3169 passed (the 3 test_loop_ballot_barrier subtests fail without this change too). GPU suites: pending, the pipeline-cache build holds the GPU. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Diffstat (limited to 'runtime/src/thread_stacks.cpp')
0 files changed, 0 insertions, 0 deletions