Tools: compare compute pipeline creation with first bind in play logs #770

Manually merged
github merged 1 commit from github-bot/gh-770 into main 2026-11-29 08:22:31 +00:00 AGit
Owner

@⁠timorjay on GitHub · 2026-11-28 05:28 UTC · original
timorjay:tools/compute-pipeline-timing-1128 → main · +118 −0 · 2 files · 1 commits · merged 2026-11-29 08:16 UTC

While testing #703 on an RTX 5090 D v2, I needed to tell whether a compute pipeline had been created when the title first bound it. The two events can be thousands of lines apart. This adds a small standard-library Python command that reads the normal release play log. It also works on logs saved before this change.

python scripts/compute_pipeline_timing.py HASH control/play.log candidate/play.log

Each row gives the input path, the number of first-bind and successful host-creation records, and the signed time in milliseconds from bind to creation. A positive number means creation happened later. If either event is missing or repeated, the row keeps the counts and leaves the time blank with a dash. The creation message identifies the shader but carries no title pipeline address for pairing repeated events. These timestamps alone cannot establish that a dispatch was dropped.

I checked the result against the original timestamp pairs in three archived Windows runs and two fresh runs. For the opening head-map compute shader, the archived deltas were −219,161.666 ms, +432.779 ms and +662.398 ms. On current main and the same build with #703 applied, the first two new logs gave +541.082 ms and −89,503.488 ms. The latter run subsequently lost the graphics device before the visual checkpoint. Its timing remains useful for verifying that scheduling changed.

The CLI test covers earlier and later creation across midnight, missing events, duplicate events, other hashes and other shader stages. It uses generated text. I ran the test with python -I -B -m unittest discover -s tests -p test_compute_pipeline_timing.py and verified cargo xtask policy. The change contains two source files.

AI-assisted implementation and verification with Codex.

**@⁠timorjay** on GitHub · 2026-11-28 05:28 UTC · [original](https://github.com/trustno1-coder/VIctory-NVIDIA/pull/770) `timorjay:tools/compute-pipeline-timing-1128` → `main` · +118 −0 · 2 files · 1 commits · merged 2026-11-29 08:16 UTC While testing #703 on an RTX 5090 D v2, I needed to tell whether a compute pipeline had been created when the title first bound it. The two events can be thousands of lines apart. This adds a small standard-library Python command that reads the normal release play log. It also works on logs saved before this change. ```text python scripts/compute_pipeline_timing.py HASH control/play.log candidate/play.log ``` Each row gives the input path, the number of first-bind and successful host-creation records, and the signed time in milliseconds from bind to creation. A positive number means creation happened later. If either event is missing or repeated, the row keeps the counts and leaves the time blank with a dash. The creation message identifies the shader but carries no title pipeline address for pairing repeated events. These timestamps alone cannot establish that a dispatch was dropped. I checked the result against the original timestamp pairs in three archived Windows runs and two fresh runs. For the opening head-map compute shader, the archived deltas were −219,161.666 ms, +432.779 ms and +662.398 ms. On current main and the same build with #703 applied, the first two new logs gave +541.082 ms and −89,503.488 ms. The latter run subsequently lost the graphics device before the visual checkpoint. Its timing remains useful for verifying that scheduling changed. The CLI test covers earlier and later creation across midnight, missing events, duplicate events, other hashes and other shader stages. It uses generated text. I ran the test with `python -I -B -m unittest discover -s tests -p test_compute_pipeline_timing.py` and verified `cargo xtask policy`. The change contains two source files. AI-assisted implementation and verification with Codex.
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-28 05:34:51 +00:00
github manually merged commit eb1815468f into main 2026-11-29 08:22:31 +00:00
This discussion has been locked. Commenting is limited to contributors.
No reviewers
No milestone
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
github/trustno1-coder--VIctory-NVIDIA!770
No description provided.