27#ifndef TVM_SUPPORT_CUDA_NVTX_H_
28#define TVM_SUPPORT_CUDA_NVTX_H_
32#ifndef TVM_NVTX_ENABLED
33#define TVM_NVTX_ENABLED 0
37#include <nvtx3/nvToolsExt.h>
55 explicit NVTXScopedRange(const std::string& name) : NVTXScopedRange(name.c_str()) {}
69#define TVM_NVTX_FUNC_SCOPE() ::tvm::support::NVTXScopedRange _nvtx_func_scope_(__FUNCSIG__);
71#define TVM_NVTX_FUNC_SCOPE() \
72 ::tvm::support::NVTXScopedRange _nvtx_func_scope_(__PRETTY_FUNCTION__);
RAII wrapper function to enter and exit a context object similar to python's with syntax.
Definition with_context.h:59
A class to create a NVTX range. No-op if TVM is not built against NVTX.
Definition nvtx.h:46
~NVTXScopedRange()
Exit an NVTX scoped range.
Definition nvtx.h:60
NVTXScopedRange(NVTXScopedRange &&other)=delete
NVTXScopedRange(const NVTXScopedRange &other)=delete
NVTXScopedRange & operator=(const NVTXScopedRange &other)=delete
NVTXScopedRange & operator=(NVTXScopedRange &&other)=delete
NVTXScopedRange(const char *name)
Enter an NVTX scoped range.
Definition nvtx.h:52
An object that builds and maintains block scope and StmtSref mapping for Dependence analysis.
Definition analyzer.h:40