operators Namespace Reference

operators Namespace Reference#

Rocprofiler SDK Developer API: rocprofiler::sdk::operators Namespace Reference
Rocprofiler SDK Developer API 0.6.0
ROCm Profiling API and tools
rocprofiler::sdk::operators Namespace Reference

Functions

template<typename Tp >
bool equal (Tp lhs, Tp rhs) ROCPROFILER_ATTRIBUTE(pure)
 
template<typename Tp >
bool less (Tp lhs, Tp rhs) ROCPROFILER_ATTRIBUTE(pure)
 

Function Documentation

◆ equal()

template<typename Tp >
bool rocprofiler::sdk::operators::equal ( Tp  lhs,
Tp  rhs 
)

Definition at line 78 of file operators.hpp.

79{
80 static_assert(sizeof(Tp) == sizeof(uint64_t), "error! only for opaque handle types");
81 return lhs.handle == rhs.handle;
82}

◆ less()

template<typename Tp >
bool rocprofiler::sdk::operators::less ( Tp  lhs,
Tp  rhs 
)

Definition at line 86 of file operators.hpp.

87{
88 static_assert(sizeof(Tp) == sizeof(uint64_t), "error! only for opaque handle types");
89 return lhs.handle < rhs.handle;
90}