Skip to content

Commit b58be4a

Browse files
committed
nvtx sniff test
Signed-off-by: Benjamin Chislett <bchislett@nvidia.com>
1 parent d5ce31d commit b58be4a

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

  • modelopt/torch/speculative/eagle

modelopt/torch/speculative/eagle/utils.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -79,6 +79,9 @@ def maybe_nvtx_range(*args, **kwargs):
7979
try:
8080
import torch.cuda.nvtx as nvtx
8181

82+
nvtx.range_push("nvtx init")
83+
nvtx.range_pop("nvtx init")
84+
8285
return nvtx.range(*args, **kwargs)
8386
except (ImportError, RuntimeError):
8487
# If NVTX is not available, return a no-op context manager

0 commit comments

Comments
 (0)