Repository navigation
docs(usage): say how a first run waits for a very large compute pipeline - #15344
Conversation
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
|
Hi ycbuzi, The explanation of the long compile and the two log lines is useful. Could you soften the final sentence in the new paragraph in The pipeline journal stores shader modules and pipeline inputs, then For example: "Later runs can reuse the driver's pipeline cache; the pipeline journal rebuilds recorded pipelines in the background, which can avoid the wait when they are first reached. A driver update or another GPU starts a separate cache." The rest of the paragraph can stay as written. |
…ot that they always do Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
|
Thanks, softened the last sentence: later runs can reuse the driver's pipeline cache and the journal rebuilds recorded pipelines in the background, which can avoid the wait; neither guarantees the driver skips the compile, and a driver update or another GPU starts a separate cache. 🤖 Addressed by Claude Code |
MarcZX10
left a comment
There was a problem hiding this comment.
Reviewed — looks good
The docs-only update accurately separates a potentially faster replay from a guarantee that the driver will skip compilation, and the applicable hosted checks passed on head 7cc41503105a951babadef6aeb51d6cd41f96512.
What I ran
Reviewed all changed content at head 7cc41503105a951babadef6aeb51d6cd41f96512 against base 7feb37ee3e30e10139b483fb4df689d5b5b69ab8; the merge preview is clean. Environment: Debian Linux x86_64, Python 3.11.2, Git 2.39.5. No local build was applicable or run.
git diff --check 7feb37ee3e30e10139b483fb4df689d5b5b69ab8...7cc41503105a951babadef6aeb51d6cd41f96512
python3 tools/pr_precheck.py --repo boykopovar/AnyPS5 --pr 15344
gh pr checks 15344 --repo boykopovar/AnyPS5
git show 7cc41503105a951babadef6aeb51d6cd41f96512:docs/user/USAGE.md
git show 7cc41503105a951babadef6aeb51d6cd41f96512:core/libs/prx/libSceAgcDriver/Graphics/src/PipelineJournal.cppResults
| Check | Result | Note |
|---|---|---|
| Diff and conventions | passed | No whitespace issues; repository conventions passed. |
| Documentation and source review | passed | The revised wording matches the journal replay implementation. |
| Hosted checks | passed | Conventions, labels and eligibility passed; build jobs were skipped for this docs-only change. |
| Optional test-quality helper | failed | Helper is absent from the isolated PR snapshot; no test files changed. |
| Build and local tests | not applicable | No code or test files changed. |
Full precheck table and unedited helper output
| Check | Status | Command / reason |
|---|---|---|
| build_and_compile | not_applicable | The precheck deliberately does not configure, build, or compile AnyPS5. |
| diff_check | passed | git diff --check 7feb37ee3e30e10139b483fb4df689d5b5b69ab8...7cc41503105a951babadef6aeb51d6cd41f96512 |
| conventions_and_pr_template | passed | /usr/bin/python3 tools/check_conventions.py --base 7feb37ee3e30e10139b483fb4df689d5b5b69ab8 --head 7cc41503105a951babadef6aeb51d6cd41f96512 --title docs(usage): say how a first run waits for a very large compute pipeline --body /tmp/anyps5-pr-precheck/15344-20261103/pr-body.md |
| changed_export_abi_audit | not_applicable | No changed source or public header under core/libs/prx. |
| python_syntax | not_applicable | No changed Python implementation files. |
| related_python_unit_tests | not_applicable | No changed tools/ module has an existing sibling tools/tests/test_<module>.py suite. |
| python_test_registration | not_applicable | No changed test_*.py files. |
| live_dependency_and_mergeability_check | passed | /usr/bin/python3 /marc/AnyPS5/tools/pr_stack_check.py 15344 --repo boykopovar/AnyPS5 --output-dir /tmp/anyps5-pr-precheck/15344-20261103/stack |
| build_dependent_cpp_tests | not_applicable | No C/C++ implementation or test files changed. |
| test_quality_heuristics | failed | /usr/bin/python3 /tmp/anyps5-pr-precheck/15344-20261103/head-7cc41503105a-6c4c3836/tools/pr_test_quality.py --root /tmp/anyps5-pr-precheck/15344-20261103/head-7cc41503105a-6c4c3836 --json docs/user/USAGE.md |
| negative_controls | not_applicable | No changed Python test module in tools/ can be run as a no-build base-source control. |
All conventions checks passed.
/usr/bin/python3: can't open file '/tmp/anyps5-pr-precheck/15344-20261103/head-7cc41503105a-6c4c3836/tools/pr_test_quality.py': [Errno 2] No such file or directory
Negative control
Not applicable: this change only edits documentation and has no executable assertion to disable.
Findings
Blocking
None.
Non-blocking
None. The author addressed the earlier concern by clarifying that cache/journal reuse can avoid a wait but does not guarantee the driver skips compilation.
Sources
- Updated shader-cache guidance
- Pipeline journal replay uses worker threads and reports replay outcomes
- Journal replay processes entries and counts failures
Not verified
I did not reproduce the author's Windows 11/NVIDIA measurements or run a title, local build or runtime test. The performance observations in the PR description remain author-reported.
To get this to a good state
No changes are requested. If the head changes, I will rerun the diff check and precheck against the new head.
✅ AMD GPU test: passedPR head
Unstable on main (1, these also failed in recent main runs on this machine; not counted against this PR)Failing on main too (3, not counted against this PR)Validation IDs already present on main (4 IDs in 441 tests)Skipped (7)ReproduceAutomated build and test on a contributor's AMD machine; it does not replace upstream CI. A new comment is posted for each new push. Full logs. |
What
Adds one paragraph to
docs/user/USAGE.mdunder Shader cache: a first run can stop at a very large compute shader while the driver compiles its pipeline (no new frames, several CPU threads busy, minutes to hours for shaders of several million SPIR-V words), the twoAPS5_PROFILE_DRAW=1log lines that name such a compile and its time, that the title's committed memory can keep growing meanwhile so the commit limit needs room (enlarge the page file on Windows), and that the finished pipeline comes from the driver's pipeline cache and the pipeline journal on later runs with the same GPU and driver.Users who meet this see a frozen screen with nothing in the window, so they close the title or report a hang.
Tested
Docs only. What the paragraph says was seen on Windows 11, Ryzen 9 7900, RTX 4070 SUPER, NVIDIA driver 616.92, with Marvel's Spider-Man Remastered (PPSA01467). That build was
mainplus #14296 and local experiments, which is why these shaders were reached; the paragraph does not depend on them.[dispatch] creating a pipeline for 4397537 SPIR-V words: the same capture replayed alone took 1,956,920 ms invkCreateComputePipelines(32.6 minutes).[dispatch] creating a pipeline for 6400735 SPIR-V words (program 0x1152cc9200)at 12:43: nocreatedline after 292 minutes, the title stayed at 261 frames, and the process kept about 3 CPU threads busy. Closed by hand.Checklist
main; no other open PR implements the same functionsNotImplemented_nid_no_patch); silent stubs are listed under Silent stubs in their library's technical debt file.mdfiles or images added to the repository (attach them to this PR)🤖 Generated with Claude Code