From 1d3e706d88e0841d3984365dd45737ff6157234a Mon Sep 17 00:00:00 2001 From: Cliff Burdick <30670611+cliffburdick@users.noreply.github.com> Date: Fri, 1 Nov 2024 21:23:02 -0700 Subject: [PATCH] Created MatX NVTX domain (#784) --- include/matx/core/nvtx.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/include/matx/core/nvtx.h b/include/matx/core/nvtx.h index a6704bfc..0708089b 100644 --- a/include/matx/core/nvtx.h +++ b/include/matx/core/nvtx.h @@ -90,6 +90,7 @@ inline std::map< int, nvtxRangeId_t> nvtx_eventMap; ///< map of currently acti inline std::mutex nvtx_memory_mtx; ///< Mutex protecting updates from map inline matx_nvxtLogLevels globalNvtxLevel = matx_nvxtLogLevels::MATX_NVTX_LOG_API; +inline nvtxDomainHandle_t matxDomain = nvtxDomainCreateA("MatX"); ////// macros to ensure custom variable names for every call //////// #define MATX_CONCAT(a, b) MATX_CONCAT_INNER(a, b) @@ -297,7 +298,7 @@ class NvtxEvent persistent_ = false; // save the id - rangeId_ = nvtxRangeStartEx(&eventAttrib); + rangeId_ = nvtxDomainRangeStartEx(matxDomain, &eventAttrib); userHandle_ = registerId; // if register with global map