Skip to content

Commit

Permalink
Created MatX NVTX domain (#784)
Browse files Browse the repository at this point in the history
  • Loading branch information
cliffburdick authored Nov 2, 2024
1 parent cc3f9ad commit 1d3e706
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion include/matx/core/nvtx.h
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 1d3e706

Please sign in to comment.