Repository navigation
Conversation
…ased A Wait64BitValueX bridged to a GPU queue.Wait is released on the CPU after GPU_WAIT_WATCHDOG_TIMEOUT (5 s) so a GPU cycle cannot hang the queue. On an NVIDIA GPU the producer is often only late: the console list that writes the value is still being translated, held by the driver's build of a big compute pipeline (2 - 115 s each for the retail title of xcl-dev#505). The release then lets the waiting compute queue read memory the producer has not written yet. Measured on an RTX 4080 SUPER with the retail title of xcl-dev#505 at its world load, every dispatch run (no skipped dispatch): with the 5 s release, "GPU queue.Wait ... did not complete within 5000 ms (... completed=0x0) - released on CPU" was followed by device removal (0x887a0006); with XCL_GPU_WAIT_RELEASE_MS=180000 the same phase had no device removal while the builds finished (70 - 115 s). The default stays 5 s; a value above 0 replaces it. Assisted-by: Claude Code (Claude Opus 5.5)
Owner
Author
|
Upstream PR xcl-dev#1046 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.
Part of xcl-dev#505.
A
Wait64BitValueXbridged to a GPUqueue.Wait(xcl-dev#795) is released on the CPU after a fixed 5 s (GPU_WAIT_WATCHDOG_TIMEOUT) so a GPU cycle cannot hang the queue. On an NVIDIA GPU the producer is often only late, not stuck: the console list that writes the value is still being translated, held by the driver's build of a big compute pipeline. For the retail title of xcl-dev#505 at its world load those builds took 2 – 115 s each here. The release then lets the waiting compute queue run on memory the producer has not written yet.XCL_GPU_WAIT_RELEASE_MS=<ms>(above 0) replaces the 5 s. Unset, nothing changes.What is in it
crates/xcl/src/hle/d3d12x/list_x.rs:gpu_wait_watchdog_timeout()/release_after(), read once likeXCL_WAIT_TIMEOUT_MSnext to it; the sync watchdog and its log line use it. Test:a_gpu_wait_is_released_after_xcl_gpu_wait_release_ms_or_the_default.Tested
cargo test --release --workspace -- --test-threads=4: 728 passed, 0 failed, 41 ignored (XCL_DXC_DIRset). SKIPPED:gpu_geometry_wave32_prefix_count_over_a_mask,gpu_wave32_program_in_wave64_hardware(no wave64). The new test also passes on its own.mainbeaa245 + open PRs, every dispatch run – no skipped dispatches – and a local change that keeps the title's own watchdog from ending the process), before and after setting the variable:GPU queue.Wait at 0x704180158 >= 0x4e1 did not complete within 5000 ms (waiter=q0/ty2, prod=qSome(1)/tySome(0), recorded=0x4e1, submitted=0x4e1, completed=0x0) – released on CPU, thenD3D12 device removed: 0x887a0006.XCL_GPU_WAIT_RELEASE_MS=180000: no device removal through the same phase while the driver finished builds of 70 – 115 s.This is not a measurement of
main+ this PR alone: onmainthe title's own watchdog ("GPU Loc Sig") ends it in that phase first.Regression run
main:
this PR:
Not tested
mainrun of the same title ended in an early assert (0x80000003) before its first frame; themainblock above is the run after it.AI use
https://claude.ai/code/session_01SEW8zXNUmMq1tRUZpstWXS
Mirror of xcl-dev#1046 (auto-synced, do not edit).