Support: record torch backend autoload state - #1977
Conversation
Emit one TIMING record per SceneTest process after torch-dependent argument preparation. The record captures the effective backend-autoload configuration and whether torch and torch_npu are loaded, so performance logs carry their own measurement context. Add L2/L3 lifecycle and PID-aware once coverage, and document the record in the bind-phase comparison workflow. Fixes hw-native-sys#1950
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Organization UI Review profile: CHILL Plan: Pro Plus Run ID: 📒 Files selected for processing (3)
Included review availability: Your plan provides up to 1 included review per hour; 0 remain after this review. 📝 WalkthroughWalkthroughThe scene-test harness records Torch backend autoload settings and module state once per process. L2 and L3 emit the record before execution. Tests verify state reporting, process behavior, and timing. Measurement documentation uses the record for branch comparisons. ChangesTorch autoload diagnostics
Estimated code review effort: 3 (Moderate) | ~20 minutes Merge Risk: ⚪ Minimal · up to This localized change records torch backend autoload state and documents the measurement workflow; no actionable merge-blocking risk remains after normal checks and review. Poem
🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
Review —
|
Summary
torch/torch_npumodule state before the first SceneTest dispatch.Testing
Fixes #1950