Repository navigation
Conversation
|
Full-suite run, since this PR has no test report yet. Tested exact head Tested
Not tested
AI use
|
|
Regression pair for Tested
this PR, For #505 (earlier runs, not this pair). On this machine the 100 % phase before the removal is one dispatch: the BVH builder's refit program ( Not tested
AI use: Claude Code (Claude Opus 5.5) |
|
RTX 3080 (10 GB, driver 610.88, Windows 11), retail 1.0.2.1 into the world: with Tested
With the budget, the title limps on at about 1 present and 40-60 submissions per 2 s for ~110 s after the point where the tree without it hangs, and the GPU keeps coming back between bursts. That fits the reading on #505 that the stop is loops running long on data a skipped dispatch never wrote. The title then faults at Not tested: other budgets (4096 only); more than one run; without AI use: Claude Code (Claude Opus 5.5) ran the runs on my machine through a scripted runner and wrote this report. |
Port of upstream PR xcl-dev#1284 (head 3980a81, open). LOOP_GUARD caps every lane at 65 536 loop iterations; the variable sets another budget (a whole number from 1). Unset, the HLSL is byte for byte as before, so DXIL cache keys and driver blobs stay valid. With it set, translations bypass the in-memory and disk caches (cache_allowed), next to XCL_CS_COHERENT from integ. Conflict resolved in pso.rs (cache_allowed and its test now list both XCL_CS_COHERENT and XCL_LOOP_BUDGET). One mis-indented test line of the PR re-indented. For the retail cutscene stop (run 22b: the GPU at 100 % SM, 230 W, 1-3 % memory use for 60 s while no title op is marked running): a loop running to the budget on data a skipped producer never wrote ends 16x sooner with XCL_LOOP_BUDGET=4096. Tests: loop_budget (2, incl. the GPU test, unset and with XCL_LOOP_BUDGET=4096), shader_cache_bypasses_debug_overrides (1). Assisted-by: omp (Claude Opus 5.5)
|
Rebased onto |
3980a81 to
0b28a6b
Compare
|
The rebase onto |
|
@upipibi on it: a AI use: Claude Code (Claude Opus 5.5) wrote this. |
|
@upipibi here is the pair.
#1284 1289 / 1279 frames (101 %), peak commit 27396 / 26967 MB (102 %), no device removal or crash on either run. No out-of-memory or exception lines in either log. AI use: Claude Code (Claude Opus 5.5) ran the pair and wrote this. |
`LOOP_GUARD` caps a lane at 65 536 loop iterations (`xcl_budget` in the prelude). In the stops of xcl-dev#505 the GPU runs translated compute loops for tens of seconds, apparently on data a skipped dispatch never wrote, and the budget is what ends them; there was no way to try a lower one without editing the prelude. The prelude now takes the budget from `#define XCL_LOOP_BUDGET`, which the emitter writes from the variable of that name (a whole number from 1; anything else keeps 65 536). A translation with it set is not cached in memory or on disk (`cache_allowed`), as for the other translation switches; DXC's own cache is keyed by the HLSL, so it stays correct. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The budget came in through a `#define` written before every prelude, which changed every program's HLSL and so every DXIL cache key, even with the variable unset: one full recompile for everyone after the update. The prelude keeps its `1u << 16` now, and only a budget other than the default replaces that line. (Point raised by not-rex on xcl-dev#505.) Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
0b28a6b to
81745f8
Compare
|
XCL PR #1284 — Intel Arc A770 loop budget compatibility Tested
Commands Process environment for both commands (XCL_LOOP_BUDGET unset). Prebuilt the library test executable outside the Arc lock (Cargo reported 1m 02s). Exact test arguments for the Cargo-reported executable. The GPU command ran in a child Windows PowerShell with -NoProfile -NonInteractive -ExecutionPolicy RemoteSigned -EncodedCommand, with the test executable path passed through XCL_PR1284_LIBTEST_EXE. RemoteSigned applied to that process only. The machine policy was unchanged. Logs beside this report include prebuild.log, prebuild.jsonl, parser.stdout.log, parser.stderr.log, gpu.stdout.log, gpu.stderr.log, and run-status.log. Not tested
AI use
|
LOOP_GUARDcaps every lane at 65 536 loop iterations. In the stops of #505, the GPU runs translated compute loops at 100 % for tens of seconds. The current reading there is that the loops run on data a skipped dispatch never wrote:If that reading holds, the budget is what finally ends those loops. There was no way to try a lower one without editing the prelude, so this adds a switch for it. It is a diagnostic, not a fix: the default does not change.
Part of #505.
What is in it
gpu/recomp/mod.rs:loop_budget()readsXCL_LOOP_BUDGET. A whole number from 1 sets the budget; anything else keeps 65 536. Documented atLOOP_GUARD.gpu/recomp/emit.rs: with the variable set to anything but 65 536, the prelude'sstatic uint xcl_budget = 1u << 16;becomesstatic uint xcl_budget = <n>u;. Unset, the HLSL is byte for byte as onmain, so DXIL cache keys and driver blobs stay valid (an earlier head wrote a#defineinto every prelude; changed after @not-rex's point on Newer retail title (TitleID 7952987A): reaches world loading, then the title's GPU watchdog ("GPU Loc Sig") after ListX #101 stub #505).gpu/recomp/pso.rs:XCL_LOOP_BUDGETjoins the switches whose translations are not cached in memory or on disk (cache_allowed, and its test). DXC's cache is keyed by the HLSL, so it stays correct. The first run with a new value recompiles every shader it meets.gpu/recomp/tests.rs:loop_budget_reads_a_whole_number_from_onechecks the parser.gpu_loop_budget_caps_a_loopruns a loop whose exit never comes (s_cmp_lgagainst 0 after the first increment). It checks that the unset translation keepsmain's prelude line, then that the loop stops after 4 096 iterations with the budget at 4096, and 61 440 iterations later at 65 536.Tested
cargo build --workspace+cargo test --workspace --no-fail-fast -- --test-threads=4:3980a81): 753 passed, 0 failed, 41 ignored;main930e8b4: 751 passed, 0 failed, 41 ignored, same machine.gpu_geometry_wave32_prefix_count_over_a_maskandgpu_wave32_program_in_wave64_hardware.XCL_LOOP_BUDGET=4096 cargo test -p xcl --lib loop_budget: 2 passed. The budget follows the variable.Dispatch(4,1,1)to reach 65 536 iterations. At 4 096 it is 16 times shorter.Regression run
Rebased onto
maincbc296a(a conflict with the new pixel-shader prelude inemit.rs), so the head is now81745f8and the pair below, for0b28a6b, no longer counts for the check. Could someone with a retail title post thexcl-smokeblocks formainand81745f8? WithoutXCL_LOOP_BUDGETthe HLSL is byte for bytemain's, so the two runs should match.Previous pair, from Kalmarv's run (thanks):
From Kalmarv's run on an RTX 5070 Ti (NVIDIA 610.74),
main20cf130and this head0b28a6b, 60 s each (#1284 (comment)), thanks:Not tested
AI use
🤖 Generated with Claude Code