Implement ROCTX (#1094)

* Implement roctx

[ROCm/rccl commit: b617aecc31]
Bu işleme şunda yer alıyor:
Bertan Dogancay
2024-02-27 15:46:15 -07:00
işlemeyi yapan: GitHub
ebeveyn d0a346a738
işleme cee279fd99
9 değiştirilmiş dosya ile 364 ekleme ve 22 silme
+5
Dosyayı Görüntüle
@@ -2777,10 +2777,15 @@ inline void mark(Args const&... args) noexcept
* `domain` to which the `registered_string_in` belongs. Else,
* `domain::global` to indicate that the global NVTX domain should be used.
*/
#if !defined(__HIP_PLATFORM_HCC__) && !defined(__HCC__) && !defined(__HIPCC__)
#define NVTX3_V1_FUNC_RANGE_IN(D) \
static ::nvtx3::v1::registered_string_in<D> const nvtx3_func_name__{__func__}; \
static ::nvtx3::v1::event_attributes const nvtx3_func_attr__{nvtx3_func_name__}; \
::nvtx3::v1::scoped_range_in<D> const nvtx3_range__{nvtx3_func_attr__};
#else
#define NVTX3_V1_FUNC_RANGE_IN(D) \
roctx_scoped_range_in const roctx_range__{__func__};
#endif
/**
* @brief Convenience macro for generating a range in the specified `domain`