[GH-ISSUE #5524] [Other] nsys 2025.1.3 report converter crashes with STRATA_PREFILL_ROUTED_STREAM=1 ("Wrong event order", TraceProcessEvent Type=48) #5495

Open
opened 2026-11-08 03:49:50 +07:00 by bsakaguchi · 0 comments
Owner

Originally created by @Lennier on GitHub (Nov 7, 2026).
Original GitHub issue: https://github.com/Niko1221/Strata/issues/5524

Environment: Windows Server 2022, driver 582.16, Tesla V100-SXM2-32GB, engine 0.1.57 (Strata v0.2.11), nsys 2025.1.3.

Repro: nsys profile --trace=cuda,nvtx --cuda-graph-trace=node --cuda-flush-interval=10000 around the server with STRATA_PREFILL_ROUTED_STREAM=1 set; run one ~100K-token prefill; nsys stop.
Result: stop produces only a .qdstrm (494 MB, kept at our side) and the converter throws QuadDCommon::InvalidArgumentException in EventCollection::CheckOrder: "Wrong event order has been detected… TraceProcessEvent Type=48" (new event ~7 s older than the last one, same GlobalId). Reproduced 4/4 with RS on.
Contrast: the identical capture with RS unset converts fine (same session, same flags, earlier the same day).
Variant tried: --cuda-api-trace=off — the session dies mid-run instead ("There are no active sessions"), no file at all.
Suspect: out-of-order CUPTI API records from the prefill issuer thread (deep copy queue, --cuda-graph-trace=node amplifies record volume). Happy to share the qdstrm.

Originally created by @Lennier on GitHub (Nov 7, 2026). Original GitHub issue: https://github.com/Niko1221/Strata/issues/5524 **Environment:** Windows Server 2022, driver 582.16, Tesla V100-SXM2-32GB, engine 0.1.57 (Strata v0.2.11), nsys 2025.1.3. **Repro:** `nsys profile --trace=cuda,nvtx --cuda-graph-trace=node --cuda-flush-interval=10000` around the server with `STRATA_PREFILL_ROUTED_STREAM=1` set; run one ~100K-token prefill; `nsys stop`. **Result:** stop produces only a `.qdstrm` (494 MB, kept at our side) and the converter throws `QuadDCommon::InvalidArgumentException` in `EventCollection::CheckOrder`: "Wrong event order has been detected… TraceProcessEvent Type=48" (new event ~7 s older than the last one, same GlobalId). Reproduced 4/4 with RS on. **Contrast:** the identical capture with RS unset converts fine (same session, same flags, earlier the same day). **Variant tried:** `--cuda-api-trace=off` — the session dies mid-run instead ("There are no active sessions"), no file at all. **Suspect:** out-of-order CUPTI API records from the prefill issuer thread (deep copy queue, `--cuda-graph-trace=node` amplifies record volume). Happy to share the qdstrm.
Sign in to join this conversation.
No milestone
No project
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
Niko1221/Strata#5495
No description provided.