fix(tools): avoid zeroing unlisted GPU program timings #13417
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/13417"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Imported from boykopovar/AnyPS5. Originally posted by dr-hoseyn on 2026-10-30T14:08:18Z.
What
The GPU timing report prints at most twelve program keys. When a requested key is absent from a full list, its time is unknown, but ab_split previously counted it as zero and produced a misleading phase comparison. Omit the phase metric when any report has an ambiguous full list, while preserving zero when the list is shorter. Document this behavior and test full and short lists.
Tested
Windows 11, Python 3.10: python tools/tests/test_ab_split.py (15 tests passed); git diff --check; python tools/check_conventions.py --base origin/main. No title, GPU or C++ build tested.
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)Imported from boykopovar/AnyPS5. Originally posted by malekaifa on 2026-10-30T18:45:05Z.
Review: APPROVED
Reviewed exact head
859281675bf1d4aad78f035d869a89c026f4f97dindependently on Windows 11 / Python 3.12.The current head closes both correctness gaps in this PR, including the mixed draw/program top-list case raised on the previous head.
Independent red/green evidence:
0.0 ms/present, and the draw-slot test has noprograms_truncatedstate;HEAD^) + the draw-slot regression: FAIL because draw entries are not counted toward the 12-slot limit;tools/tests/test_ab_split.py16/16 PASS.The previous-head failure is specifically
report["programs_truncated"] == Falsefor the mixed draw/program 12-entry list, so the new(?:draw )?count kills the reviewer-reported wrong implementation rather than only adding nominal coverage.Additional checks:
py_compilePASS; conventions PASS;git diff --checkPASS; no newer-main changes totools/ab_split.pyortools/tests/test_ab_split.py; merge-tree against current main has no textual conflicts. No title/GPU/C++ execution claimed.AI-assisted review.