MCPcopy
hub / github.com/NVIDIA/TensorRT-LLM / nvtx_mark_debug

Function nvtx_mark_debug

tensorrt_llm/_utils.py:949–958  ·  view source on GitHub ↗

Creates an NVTX marker for debugging purposes.

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

Source from the content-addressed store, hash-verified

947
948
949def nvtx_mark_debug(msg: str,
950 color: str = "grey",
951 domain: str = "TensorRT-LLM",
952 category: Optional[str] = None) -> None:
953 """
954 Creates an NVTX marker for debugging purposes.
955 """
956 if os.getenv("TLLM_LLMAPI_ENABLE_NVTX", "0") == "1" or \
957 os.getenv("TLLM_NVTX_DEBUG", "0") == "1":
958 nvtx_mark(msg, color=color, domain=domain, category=category)
959
960
961def nvtx_mark(msg: str,

Callers 5

_response_readerMethod · 0.90
_call_asyncMethod · 0.90
_call_syncMethod · 0.90
_call_futureMethod · 0.90
_call_streamingMethod · 0.90

Calls 1

nvtx_markFunction · 0.85

Tested by

no test coverage detected