Creates an NVTX marker for debugging purposes.
(msg: str,
color: str = "grey",
domain: str = "TensorRT-LLM",
category: Optional[str] = None)
| 947 | |
| 948 | |
| 949 | def 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 | |
| 961 | def nvtx_mark(msg: str, |
no test coverage detected