operators Namespace Reference

operators Namespace Reference#

Rocprofiler SDK Developer API: rocprofiler::sdk::operators Namespace Reference
Rocprofiler SDK Developer API 0.5.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 77 of file operators.hpp.

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

◆ less()

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

Definition at line 85 of file operators.hpp.

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