MCPcopy Index your code
hub / github.com/NVIDIA/TensorRT-LLM / nvtx_mark

Function nvtx_mark

tensorrt_llm/_utils.py:961–977  ·  view source on GitHub ↗

Creates an NVTX marker for profiling. This function places a single marker point in NVIDIA Tools Extension (NVTX) profiling tools like Nsight Systems, useful for marking specific events. Args: msg (str): The message/name for the NVTX marker. color (str, optional):

(msg: str,
              color: str = "grey",
              domain: str = "TensorRT-LLM",
              category: Optional[str] = None)

Source from the content-addressed store, hash-verified

959
960
961def nvtx_mark(msg: str,
962 color: str = "grey",
963 domain: str = "TensorRT-LLM",
964 category: Optional[str] = None):
965 """
966 Creates an NVTX marker for profiling.
967
968 This function places a single marker point in NVIDIA Tools Extension (NVTX)
969 profiling tools like Nsight Systems, useful for marking specific events.
970
971 Args:
972 msg (str): The message/name for the NVTX marker.
973 color (str, optional): The color to use for the marker in the profiler. Defaults to "grey".
974 domain (str, optional): The domain name for the marker. Defaults to "TensorRT-LLM".
975 category (str, optional): The category for the marker. Defaults to None.
976 """
977 nvtx.mark(msg, color=color, category=category, domain=domain)
978
979
980def volume(d: Sequence[int]):

Callers 3

nvtx_mark_debugFunction · 0.85
chat_stream_generatorMethod · 0.85
put_asyncMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected