Skip to content

Commit 76655a0

Browse files
Copilottianleiwu
andauthored
Fix NVTX profiling: restore missing node_compute_range_.Begin() call (#28273)
### Description Restores the missing `node_compute_range_.Begin()` call in `KernelScope`'s constructor. The corresponding `End()` in the destructor was kept, so every kernel execution hits: ``` ORT_ENFORCE(is_begin_called_, "End must be called after calling Begin."); ``` ### Motivation and Context PR #26846 refactored `sequential_executor.cc` into RAII scope classes but dropped the `node_compute_range_.Begin()` call during the move. Any build with `--enable_nvtx_profile` fails at runtime on the first kernel execution. --------- Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com> Co-authored-by: tianleiwu <30328909+tianleiwu@users.noreply.github.com>
1 parent 5f7e9d0 commit 76655a0

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

‎onnxruntime/core/framework/sequential_executor.cc‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -364,6 +364,7 @@ class KernelScope {
364364
forward_range.End();
365365
backward_range.Begin();
366366
}
367+
node_compute_range_.Begin();
367368
}
368369
#endif
369370

0 commit comments

Comments
 (0)