rocprofiler-sdk/cxx/operators.hpp File Reference

rocprofiler-sdk/cxx/operators.hpp File Reference#

Rocprofiler SDK Developer API: rocprofiler-sdk/cxx/operators.hpp File Reference
Rocprofiler SDK Developer API 0.6.0
ROCm Profiling API and tools
operators.hpp File Reference
+ Include dependency graph for operators.hpp:

Go to the source code of this file.

Namespaces

namespace  rocprofiler
 
namespace  rocprofiler::sdk
 
namespace  rocprofiler::sdk::operators
 

Macros

#define ROCPROFILER_CXX_DECLARE_OPERATORS(TYPE)
 
#define ROCPROFILER_CXX_DEFINE_NE_OPERATOR(TYPE)    inline bool operator!=(TYPE lhs, TYPE rhs) { return !(lhs == rhs); }
 
#define ROCPROFILER_CXX_DEFINE_EQ_HANDLE_OPERATOR(TYPE)
 
#define ROCPROFILER_CXX_DEFINE_LT_HANDLE_OPERATOR(TYPE)
 
#define ROCPROFILER_CXX_DEFINE_COMPARE_OPERATORS(TYPE)
 

Functions

template<typename Tp >
bool rocprofiler::sdk::operators::equal (Tp lhs, Tp rhs) ROCPROFILER_ATTRIBUTE(pure)
 
template<typename Tp >
bool rocprofiler::sdk::operators::less (Tp lhs, Tp rhs) ROCPROFILER_ATTRIBUTE(pure)
 
bool operator== (rocprofiler_context_id_t lhs, rocprofiler_context_id_t rhs) ROCPROFILER_ATTRIBUTE(pure)
 
bool operator!= (rocprofiler_context_id_t lhs, rocprofiler_context_id_t rhs) ROCPROFILER_ATTRIBUTE(pure)
 
bool operator< (rocprofiler_context_id_t lhs, rocprofiler_context_id_t rhs) ROCPROFILER_ATTRIBUTE(pure)
 
bool operator> (rocprofiler_context_id_t lhs, rocprofiler_context_id_t rhs) ROCPROFILER_ATTRIBUTE(pure)
 
bool operator<= (rocprofiler_context_id_t lhs, rocprofiler_context_id_t rhs) ROCPROFILER_ATTRIBUTE(pure)
 
bool operator>= (rocprofiler_context_id_t lhs, rocprofiler_context_id_t rhs) ROCPROFILER_ATTRIBUTE(pure)
 
bool operator== (rocprofiler_agent_id_t lhs, rocprofiler_agent_id_t rhs) ROCPROFILER_ATTRIBUTE(pure)
 
bool operator!= (rocprofiler_agent_id_t lhs, rocprofiler_agent_id_t rhs) ROCPROFILER_ATTRIBUTE(pure)
 
bool operator< (rocprofiler_agent_id_t lhs, rocprofiler_agent_id_t rhs) ROCPROFILER_ATTRIBUTE(pure)
 
bool operator> (rocprofiler_agent_id_t lhs, rocprofiler_agent_id_t rhs) ROCPROFILER_ATTRIBUTE(pure)
 
bool operator<= (rocprofiler_agent_id_t lhs, rocprofiler_agent_id_t rhs) ROCPROFILER_ATTRIBUTE(pure)
 
bool operator>= (rocprofiler_agent_id_t lhs, rocprofiler_agent_id_t rhs) ROCPROFILER_ATTRIBUTE(pure)
 
bool operator== (rocprofiler_queue_id_t lhs, rocprofiler_queue_id_t rhs) ROCPROFILER_ATTRIBUTE(pure)
 
bool operator!= (rocprofiler_queue_id_t lhs, rocprofiler_queue_id_t rhs) ROCPROFILER_ATTRIBUTE(pure)
 
bool operator< (rocprofiler_queue_id_t lhs, rocprofiler_queue_id_t rhs) ROCPROFILER_ATTRIBUTE(pure)
 
bool operator> (rocprofiler_queue_id_t lhs, rocprofiler_queue_id_t rhs) ROCPROFILER_ATTRIBUTE(pure)
 
bool operator<= (rocprofiler_queue_id_t lhs, rocprofiler_queue_id_t rhs) ROCPROFILER_ATTRIBUTE(pure)
 
bool operator>= (rocprofiler_queue_id_t lhs, rocprofiler_queue_id_t rhs) ROCPROFILER_ATTRIBUTE(pure)
 
bool operator== (rocprofiler_buffer_id_t lhs, rocprofiler_buffer_id_t rhs) ROCPROFILER_ATTRIBUTE(pure)
 
bool operator!= (rocprofiler_buffer_id_t lhs, rocprofiler_buffer_id_t rhs) ROCPROFILER_ATTRIBUTE(pure)
 
bool operator< (rocprofiler_buffer_id_t lhs, rocprofiler_buffer_id_t rhs) ROCPROFILER_ATTRIBUTE(pure)
 
bool operator> (rocprofiler_buffer_id_t lhs, rocprofiler_buffer_id_t rhs) ROCPROFILER_ATTRIBUTE(pure)
 
bool operator<= (rocprofiler_buffer_id_t lhs, rocprofiler_buffer_id_t rhs) ROCPROFILER_ATTRIBUTE(pure)
 
bool operator>= (rocprofiler_buffer_id_t lhs, rocprofiler_buffer_id_t rhs) ROCPROFILER_ATTRIBUTE(pure)
 
bool operator== (rocprofiler_counter_id_t lhs, rocprofiler_counter_id_t rhs) ROCPROFILER_ATTRIBUTE(pure)
 
bool operator!= (rocprofiler_counter_id_t lhs, rocprofiler_counter_id_t rhs) ROCPROFILER_ATTRIBUTE(pure)
 
bool operator< (rocprofiler_counter_id_t lhs, rocprofiler_counter_id_t rhs) ROCPROFILER_ATTRIBUTE(pure)
 
bool operator> (rocprofiler_counter_id_t lhs, rocprofiler_counter_id_t rhs) ROCPROFILER_ATTRIBUTE(pure)
 
bool operator<= (rocprofiler_counter_id_t lhs, rocprofiler_counter_id_t rhs) ROCPROFILER_ATTRIBUTE(pure)
 
bool operator>= (rocprofiler_counter_id_t lhs, rocprofiler_counter_id_t rhs) ROCPROFILER_ATTRIBUTE(pure)
 
bool operator== (rocprofiler_profile_config_id_t lhs, rocprofiler_profile_config_id_t rhs) ROCPROFILER_ATTRIBUTE(pure)
 
bool operator!= (rocprofiler_profile_config_id_t lhs, rocprofiler_profile_config_id_t rhs) ROCPROFILER_ATTRIBUTE(pure)
 
bool operator< (rocprofiler_profile_config_id_t lhs, rocprofiler_profile_config_id_t rhs) ROCPROFILER_ATTRIBUTE(pure)
 
bool operator> (rocprofiler_profile_config_id_t lhs, rocprofiler_profile_config_id_t rhs) ROCPROFILER_ATTRIBUTE(pure)
 
bool operator<= (rocprofiler_profile_config_id_t lhs, rocprofiler_profile_config_id_t rhs) ROCPROFILER_ATTRIBUTE(pure)
 
bool operator>= (rocprofiler_profile_config_id_t lhs, rocprofiler_profile_config_id_t rhs) ROCPROFILER_ATTRIBUTE(pure)
 
bool operator== (rocprofiler_callback_thread_t lhs, rocprofiler_callback_thread_t rhs) ROCPROFILER_ATTRIBUTE(pure)
 
bool operator!= (rocprofiler_callback_thread_t lhs, rocprofiler_callback_thread_t rhs) ROCPROFILER_ATTRIBUTE(pure)
 
bool operator< (rocprofiler_callback_thread_t lhs, rocprofiler_callback_thread_t rhs) ROCPROFILER_ATTRIBUTE(pure)
 
bool operator> (rocprofiler_callback_thread_t lhs, rocprofiler_callback_thread_t rhs) ROCPROFILER_ATTRIBUTE(pure)
 
bool operator<= (rocprofiler_callback_thread_t lhs, rocprofiler_callback_thread_t rhs) ROCPROFILER_ATTRIBUTE(pure)
 
bool operator>= (rocprofiler_callback_thread_t lhs, rocprofiler_callback_thread_t rhs) ROCPROFILER_ATTRIBUTE(pure)
 
bool operator== (hsa_agent_t lhs, hsa_agent_t rhs) ROCPROFILER_ATTRIBUTE(pure)
 
bool operator!= (hsa_agent_t lhs, hsa_agent_t rhs) ROCPROFILER_ATTRIBUTE(pure)
 
bool operator< (hsa_agent_t lhs, hsa_agent_t rhs) ROCPROFILER_ATTRIBUTE(pure)
 
bool operator> (hsa_agent_t lhs, hsa_agent_t rhs) ROCPROFILER_ATTRIBUTE(pure)
 
bool operator<= (hsa_agent_t lhs, hsa_agent_t rhs) ROCPROFILER_ATTRIBUTE(pure)
 
bool operator>= (hsa_agent_t lhs, hsa_agent_t rhs) ROCPROFILER_ATTRIBUTE(pure)
 
bool operator== (hsa_signal_t lhs, hsa_signal_t rhs) ROCPROFILER_ATTRIBUTE(pure)
 
bool operator!= (hsa_signal_t lhs, hsa_signal_t rhs) ROCPROFILER_ATTRIBUTE(pure)
 
bool operator< (hsa_signal_t lhs, hsa_signal_t rhs) ROCPROFILER_ATTRIBUTE(pure)
 
bool operator> (hsa_signal_t lhs, hsa_signal_t rhs) ROCPROFILER_ATTRIBUTE(pure)
 
bool operator<= (hsa_signal_t lhs, hsa_signal_t rhs) ROCPROFILER_ATTRIBUTE(pure)
 
bool operator>= (hsa_signal_t lhs, hsa_signal_t rhs) ROCPROFILER_ATTRIBUTE(pure)
 
bool operator== (hsa_executable_t lhs, hsa_executable_t rhs) ROCPROFILER_ATTRIBUTE(pure)
 
bool operator!= (hsa_executable_t lhs, hsa_executable_t rhs) ROCPROFILER_ATTRIBUTE(pure)
 
bool operator< (hsa_executable_t lhs, hsa_executable_t rhs) ROCPROFILER_ATTRIBUTE(pure)
 
bool operator> (hsa_executable_t lhs, hsa_executable_t rhs) ROCPROFILER_ATTRIBUTE(pure)
 
bool operator<= (hsa_executable_t lhs, hsa_executable_t rhs) ROCPROFILER_ATTRIBUTE(pure)
 
bool operator>= (hsa_executable_t lhs, hsa_executable_t rhs) ROCPROFILER_ATTRIBUTE(pure)
 
bool operator== (const rocprofiler_agent_v0_t &lhs, const rocprofiler_agent_v0_t &rhs) ROCPROFILER_ATTRIBUTE(pure)
 
bool operator!= (const rocprofiler_agent_v0_t &lhs, const rocprofiler_agent_v0_t &rhs) ROCPROFILER_ATTRIBUTE(pure)
 
bool operator< (const rocprofiler_agent_v0_t &lhs, const rocprofiler_agent_v0_t &rhs) ROCPROFILER_ATTRIBUTE(pure)
 
bool operator> (const rocprofiler_agent_v0_t &lhs, const rocprofiler_agent_v0_t &rhs) ROCPROFILER_ATTRIBUTE(pure)
 
bool operator<= (const rocprofiler_agent_v0_t &lhs, const rocprofiler_agent_v0_t &rhs) ROCPROFILER_ATTRIBUTE(pure)
 
bool operator>= (const rocprofiler_agent_v0_t &lhs, const rocprofiler_agent_v0_t &rhs) ROCPROFILER_ATTRIBUTE(pure)
 
bool operator== (rocprofiler_dim3_t lhs, rocprofiler_dim3_t rhs) ROCPROFILER_ATTRIBUTE(pure)
 
bool operator!= (rocprofiler_dim3_t lhs, rocprofiler_dim3_t rhs) ROCPROFILER_ATTRIBUTE(pure)
 
bool operator< (rocprofiler_dim3_t lhs, rocprofiler_dim3_t rhs) ROCPROFILER_ATTRIBUTE(pure)
 
bool operator> (rocprofiler_dim3_t lhs, rocprofiler_dim3_t rhs) ROCPROFILER_ATTRIBUTE(pure)
 
bool operator<= (rocprofiler_dim3_t lhs, rocprofiler_dim3_t rhs) ROCPROFILER_ATTRIBUTE(pure)
 
bool operator>= (rocprofiler_dim3_t lhs, rocprofiler_dim3_t rhs) ROCPROFILER_ATTRIBUTE(pure)
 
bool operator== (hsa_region_t lhs, hsa_region_t rhs) ROCPROFILER_ATTRIBUTE(pure)
 
bool operator!= (hsa_region_t lhs, hsa_region_t rhs) ROCPROFILER_ATTRIBUTE(pure)
 
bool operator< (hsa_region_t lhs, hsa_region_t rhs) ROCPROFILER_ATTRIBUTE(pure)
 
bool operator> (hsa_region_t lhs, hsa_region_t rhs) ROCPROFILER_ATTRIBUTE(pure)
 
bool operator<= (hsa_region_t lhs, hsa_region_t rhs) ROCPROFILER_ATTRIBUTE(pure)
 
bool operator>= (hsa_region_t lhs, hsa_region_t rhs) ROCPROFILER_ATTRIBUTE(pure)
 
bool operator== (hsa_amd_memory_pool_t lhs, hsa_amd_memory_pool_t rhs) ROCPROFILER_ATTRIBUTE(pure)
 
bool operator!= (hsa_amd_memory_pool_t lhs, hsa_amd_memory_pool_t rhs) ROCPROFILER_ATTRIBUTE(pure)
 
bool operator< (hsa_amd_memory_pool_t lhs, hsa_amd_memory_pool_t rhs) ROCPROFILER_ATTRIBUTE(pure)
 
bool operator> (hsa_amd_memory_pool_t lhs, hsa_amd_memory_pool_t rhs) ROCPROFILER_ATTRIBUTE(pure)
 
bool operator<= (hsa_amd_memory_pool_t lhs, hsa_amd_memory_pool_t rhs) ROCPROFILER_ATTRIBUTE(pure)
 
bool operator>= (hsa_amd_memory_pool_t lhs, hsa_amd_memory_pool_t rhs) ROCPROFILER_ATTRIBUTE(pure)
 

Macro Definition Documentation

◆ ROCPROFILER_CXX_DECLARE_OPERATORS

#define ROCPROFILER_CXX_DECLARE_OPERATORS (   TYPE)
Value:
bool operator==(TYPE lhs, TYPE rhs) ROCPROFILER_ATTRIBUTE(pure); \
bool operator!=(TYPE lhs, TYPE rhs) ROCPROFILER_ATTRIBUTE(pure); \
bool operator<(TYPE lhs, TYPE rhs) ROCPROFILER_ATTRIBUTE(pure); \
bool operator>(TYPE lhs, TYPE rhs) ROCPROFILER_ATTRIBUTE(pure); \
bool operator<=(TYPE lhs, TYPE rhs) ROCPROFILER_ATTRIBUTE(pure); \
bool operator>=(TYPE lhs, TYPE rhs) ROCPROFILER_ATTRIBUTE(pure);
bool operator>=(rocprofiler_context_id_t lhs, rocprofiler_context_id_t rhs) ROCPROFILER_ATTRIBUTE(pure)
bool operator<(rocprofiler_context_id_t lhs, rocprofiler_context_id_t rhs) ROCPROFILER_ATTRIBUTE(pure)
bool operator==(rocprofiler_context_id_t lhs, rocprofiler_context_id_t rhs) ROCPROFILER_ATTRIBUTE(pure)
bool operator!=(rocprofiler_context_id_t lhs, rocprofiler_context_id_t rhs) ROCPROFILER_ATTRIBUTE(pure)
bool operator<=(rocprofiler_context_id_t lhs, rocprofiler_context_id_t rhs) ROCPROFILER_ATTRIBUTE(pure)
bool operator>(rocprofiler_context_id_t lhs, rocprofiler_context_id_t rhs) ROCPROFILER_ATTRIBUTE(pure)

Definition at line 34 of file operators.hpp.

42 { return !(lhs == rhs); }
43
44#define ROCPROFILER_CXX_DEFINE_EQ_HANDLE_OPERATOR(TYPE) \
45 inline bool operator==(TYPE lhs, TYPE rhs) \
46 { \
47 return ::rocprofiler::sdk::operators::equal(lhs, rhs); \
48 }
49
50#define ROCPROFILER_CXX_DEFINE_LT_HANDLE_OPERATOR(TYPE) \
51 inline bool operator<(TYPE lhs, TYPE rhs) \
52 { \
53 return ::rocprofiler::sdk::operators::less(lhs, rhs); \
54 }
55
56#define ROCPROFILER_CXX_DEFINE_COMPARE_OPERATORS(TYPE) \
57 inline bool operator>(TYPE lhs, TYPE rhs) { return (lhs == rhs || !(lhs < rhs)); } \
58 inline bool operator<=(TYPE lhs, TYPE rhs) { return (lhs == rhs || lhs < rhs); } \
59 inline bool operator>=(TYPE lhs, TYPE rhs) { return !(lhs < rhs); }
60
61namespace rocprofiler
62{
63namespace sdk
64{
65namespace operators
66{
67template <typename Tp>
68bool
69equal(Tp lhs, Tp rhs) ROCPROFILER_ATTRIBUTE(pure);
70
71template <typename Tp>
72bool
73less(Tp lhs, Tp rhs) ROCPROFILER_ATTRIBUTE(pure);
74
75template <typename Tp>
76bool
77equal(Tp lhs, Tp rhs)
78{
79 static_assert(sizeof(Tp) == sizeof(uint64_t), "error! only for opaque handle types");
80 return lhs.handle == rhs.handle;
81}
82
83template <typename Tp>
84bool
85less(Tp lhs, Tp rhs)
86{
87 static_assert(sizeof(Tp) == sizeof(uint64_t), "error! only for opaque handle types");
88 return lhs.handle < rhs.handle;
89}
90} // namespace operators
91} // namespace sdk
92} // namespace rocprofiler
93
94// declaration of operator== and operator!=
104ROCPROFILER_CXX_DECLARE_OPERATORS(hsa_executable_t)
108ROCPROFILER_CXX_DECLARE_OPERATORS(hsa_amd_memory_pool_t)
109
110// definitions of operator==
123
124inline bool
126{
127 return (lhs.id == rhs.id);
128}
129
130inline bool
132{
133 return std::tie(lhs.x, lhs.y, lhs.z) == std::tie(rhs.x, rhs.y, rhs.z);
134}
135
136// definitions of operator!=
150ROCPROFILER_CXX_DEFINE_NE_OPERATOR(hsa_amd_memory_pool_t)
151
152// definitions of operator<
165
166inline bool
168{
169 return (lhs.id < rhs.id);
170}
171
172inline bool
174{
175 const auto magnitude = [](rocprofiler_dim3_t dim_v) { return dim_v.x * dim_v.y * dim_v.z; };
176 auto lhs_m = magnitude(lhs);
177 auto rhs_m = magnitude(rhs);
178
179 return (lhs_m == rhs_m) ? std::tie(lhs.x, lhs.y, lhs.z) < std::tie(rhs.x, rhs.y, rhs.z)
180 : (lhs_m < rhs_m);
181}
182
183// definitions of operator>, operator<=, operator>=
197ROCPROFILER_CXX_DEFINE_COMPARE_OPERATORS(hsa_amd_memory_pool_t)
198
199// cleanup defines
200#undef ROCPROFILER_CXX_DECLARE_OPERATORS
201#undef ROCPROFILER_CXX_DEFINE_NE_OPERATOR
202#undef ROCPROFILER_CXX_DEFINE_EQ_HANDLE_OPERATOR
203#undef ROCPROFILER_CXX_DEFINE_LT_HANDLE_OPERATOR
204#undef ROCPROFILER_CXX_DEFINE_COMPARE_OPERATORS
rocprofiler_agent_id_t id
Internal opaque identifier.
Definition agent.h:114
Stores the properties of an agent (CPU, GPU, etc.)
Definition agent.h:111
uint32_t z
Definition fwd.h:606
uint32_t y
Definition fwd.h:605
uint32_t x
Definition fwd.h:604
Agent Identifier.
Definition fwd.h:578
Context ID.
Definition fwd.h:539
Counter ID.
Definition fwd.h:586
Multi-dimensional struct of data used to describe GPU workgroup and grid sizes.
Definition fwd.h:603
Profile Configurations.
Definition fwd.h:595
opaque handle to an internal thread identifier which delivers callbacks for buffers
bool less(Tp lhs, Tp rhs) ROCPROFILER_ATTRIBUTE(pure)
Definition operators.hpp:86
bool equal(Tp lhs, Tp rhs) ROCPROFILER_ATTRIBUTE(pure)
Definition operators.hpp:78
#define ROCPROFILER_CXX_DECLARE_OPERATORS(TYPE)
Definition operators.hpp:34
#define ROCPROFILER_CXX_DEFINE_LT_HANDLE_OPERATOR(TYPE)
Definition operators.hpp:51
#define ROCPROFILER_CXX_DEFINE_COMPARE_OPERATORS(TYPE)
Definition operators.hpp:57
#define ROCPROFILER_CXX_DEFINE_EQ_HANDLE_OPERATOR(TYPE)
Definition operators.hpp:45
#define ROCPROFILER_CXX_DEFINE_NE_OPERATOR(TYPE)
Definition operators.hpp:42

◆ ROCPROFILER_CXX_DEFINE_COMPARE_OPERATORS

#define ROCPROFILER_CXX_DEFINE_COMPARE_OPERATORS (   TYPE)
Value:
inline bool operator>(TYPE lhs, TYPE rhs) { return (lhs == rhs || !(lhs < rhs)); } \
inline bool operator<=(TYPE lhs, TYPE rhs) { return (lhs == rhs || lhs < rhs); } \
inline bool operator>=(TYPE lhs, TYPE rhs) { return !(lhs < rhs); }

Definition at line 57 of file operators.hpp.

58 { return (lhs == rhs || !(lhs < rhs)); } \
59 inline bool operator<=(TYPE lhs, TYPE rhs) { return (lhs == rhs || lhs < rhs); } \
60 inline bool operator>=(TYPE lhs, TYPE rhs) { return !(lhs < rhs); }

◆ ROCPROFILER_CXX_DEFINE_EQ_HANDLE_OPERATOR

#define ROCPROFILER_CXX_DEFINE_EQ_HANDLE_OPERATOR (   TYPE)
Value:
inline bool operator==(TYPE lhs, TYPE rhs) \
{ \
return ::rocprofiler::sdk::operators::equal(lhs, rhs); \
}

Definition at line 45 of file operators.hpp.

47 { \
48 return ::rocprofiler::sdk::operators::equal(lhs, rhs); \
49 }

◆ ROCPROFILER_CXX_DEFINE_LT_HANDLE_OPERATOR

#define ROCPROFILER_CXX_DEFINE_LT_HANDLE_OPERATOR (   TYPE)
Value:
inline bool operator<(TYPE lhs, TYPE rhs) \
{ \
return ::rocprofiler::sdk::operators::less(lhs, rhs); \
}

Definition at line 51 of file operators.hpp.

53 { \
54 return ::rocprofiler::sdk::operators::less(lhs, rhs); \
55 }

◆ ROCPROFILER_CXX_DEFINE_NE_OPERATOR

#define ROCPROFILER_CXX_DEFINE_NE_OPERATOR (   TYPE)     inline bool operator!=(TYPE lhs, TYPE rhs) { return !(lhs == rhs); }

Definition at line 42 of file operators.hpp.

43 { return !(lhs == rhs); }

Function Documentation

◆ operator!=() [1/14]

bool operator!= ( const rocprofiler_agent_v0_t lhs,
const rocprofiler_agent_v0_t rhs 
)
inline

Definition at line 148 of file operators.hpp.

◆ operator!=() [2/14]

bool operator!= ( hsa_agent_t  lhs,
hsa_agent_t  rhs 
)
inline

Definition at line 145 of file operators.hpp.

◆ operator!=() [3/14]

bool operator!= ( hsa_amd_memory_pool_t  lhs,
hsa_amd_memory_pool_t  rhs 
)
inline

Definition at line 151 of file operators.hpp.

◆ operator!=() [4/14]

bool operator!= ( hsa_executable_t  lhs,
hsa_executable_t  rhs 
)
inline

Definition at line 147 of file operators.hpp.

◆ operator!=() [5/14]

bool operator!= ( hsa_region_t  lhs,
hsa_region_t  rhs 
)
inline

Definition at line 150 of file operators.hpp.

◆ operator!=() [6/14]

bool operator!= ( hsa_signal_t  lhs,
hsa_signal_t  rhs 
)
inline

Definition at line 146 of file operators.hpp.

◆ operator!=() [7/14]

bool operator!= ( rocprofiler_agent_id_t  lhs,
rocprofiler_agent_id_t  rhs 
)
inline

Definition at line 139 of file operators.hpp.

◆ operator!=() [8/14]

bool operator!= ( rocprofiler_buffer_id_t  lhs,
rocprofiler_buffer_id_t  rhs 
)
inline

Definition at line 141 of file operators.hpp.

◆ operator!=() [9/14]

bool operator!= ( rocprofiler_callback_thread_t  lhs,
rocprofiler_callback_thread_t  rhs 
)
inline

Definition at line 144 of file operators.hpp.

◆ operator!=() [10/14]

bool operator!= ( rocprofiler_context_id_t  lhs,
rocprofiler_context_id_t  rhs 
)
inline

Definition at line 138 of file operators.hpp.

◆ operator!=() [11/14]

bool operator!= ( rocprofiler_counter_id_t  lhs,
rocprofiler_counter_id_t  rhs 
)
inline

Definition at line 142 of file operators.hpp.

◆ operator!=() [12/14]

bool operator!= ( rocprofiler_dim3_t  lhs,
rocprofiler_dim3_t  rhs 
)
inline

Definition at line 149 of file operators.hpp.

◆ operator!=() [13/14]

bool operator!= ( rocprofiler_profile_config_id_t  lhs,
rocprofiler_profile_config_id_t  rhs 
)
inline

Definition at line 143 of file operators.hpp.

◆ operator!=() [14/14]

bool operator!= ( rocprofiler_queue_id_t  lhs,
rocprofiler_queue_id_t  rhs 
)
inline

Definition at line 140 of file operators.hpp.

◆ operator<() [1/14]

bool operator< ( const rocprofiler_agent_v0_t lhs,
const rocprofiler_agent_v0_t rhs 
)
inline

Definition at line 167 of file operators.hpp.

169{
170 return (lhs.id < rhs.id);
171}

◆ operator<() [2/14]

bool operator< ( hsa_agent_t  lhs,
hsa_agent_t  rhs 
)
inline

Definition at line 161 of file operators.hpp.

◆ operator<() [3/14]

bool operator< ( hsa_amd_memory_pool_t  lhs,
hsa_amd_memory_pool_t  rhs 
)
inline

Definition at line 165 of file operators.hpp.

◆ operator<() [4/14]

bool operator< ( hsa_executable_t  lhs,
hsa_executable_t  rhs 
)
inline

Definition at line 163 of file operators.hpp.

◆ operator<() [5/14]

bool operator< ( hsa_region_t  lhs,
hsa_region_t  rhs 
)
inline

Definition at line 164 of file operators.hpp.

◆ operator<() [6/14]

bool operator< ( hsa_signal_t  lhs,
hsa_signal_t  rhs 
)
inline

Definition at line 162 of file operators.hpp.

◆ operator<() [7/14]

bool operator< ( rocprofiler_agent_id_t  lhs,
rocprofiler_agent_id_t  rhs 
)
inline

Definition at line 155 of file operators.hpp.

◆ operator<() [8/14]

bool operator< ( rocprofiler_buffer_id_t  lhs,
rocprofiler_buffer_id_t  rhs 
)
inline

Definition at line 157 of file operators.hpp.

◆ operator<() [9/14]

bool operator< ( rocprofiler_callback_thread_t  lhs,
rocprofiler_callback_thread_t  rhs 
)
inline

Definition at line 160 of file operators.hpp.

◆ operator<() [10/14]

bool operator< ( rocprofiler_context_id_t  lhs,
rocprofiler_context_id_t  rhs 
)
inline

Definition at line 154 of file operators.hpp.

◆ operator<() [11/14]

bool operator< ( rocprofiler_counter_id_t  lhs,
rocprofiler_counter_id_t  rhs 
)
inline

Definition at line 158 of file operators.hpp.

◆ operator<() [12/14]

bool operator< ( rocprofiler_dim3_t  lhs,
rocprofiler_dim3_t  rhs 
)
inline

Definition at line 173 of file operators.hpp.

175{
176 const auto magnitude = [](rocprofiler_dim3_t dim_v) { return dim_v.x * dim_v.y * dim_v.z; };
177 auto lhs_m = magnitude(lhs);
178 auto rhs_m = magnitude(rhs);
179
180 return (lhs_m == rhs_m) ? std::tie(lhs.x, lhs.y, lhs.z) < std::tie(rhs.x, rhs.y, rhs.z)
181 : (lhs_m < rhs_m);
182}

References rocprofiler_dim3_t::x, rocprofiler_dim3_t::y, and rocprofiler_dim3_t::z.

◆ operator<() [13/14]

bool operator< ( rocprofiler_profile_config_id_t  lhs,
rocprofiler_profile_config_id_t  rhs 
)
inline

Definition at line 159 of file operators.hpp.

◆ operator<() [14/14]

bool operator< ( rocprofiler_queue_id_t  lhs,
rocprofiler_queue_id_t  rhs 
)
inline

Definition at line 156 of file operators.hpp.

◆ operator<=() [1/14]

bool operator<= ( const rocprofiler_agent_v0_t lhs,
const rocprofiler_agent_v0_t rhs 
)
inline

Definition at line 195 of file operators.hpp.

◆ operator<=() [2/14]

bool operator<= ( hsa_agent_t  lhs,
hsa_agent_t  rhs 
)
inline

Definition at line 192 of file operators.hpp.

◆ operator<=() [3/14]

bool operator<= ( hsa_amd_memory_pool_t  lhs,
hsa_amd_memory_pool_t  rhs 
)
inline

Definition at line 198 of file operators.hpp.

◆ operator<=() [4/14]

bool operator<= ( hsa_executable_t  lhs,
hsa_executable_t  rhs 
)
inline

Definition at line 194 of file operators.hpp.

◆ operator<=() [5/14]

bool operator<= ( hsa_region_t  lhs,
hsa_region_t  rhs 
)
inline

Definition at line 197 of file operators.hpp.

◆ operator<=() [6/14]

bool operator<= ( hsa_signal_t  lhs,
hsa_signal_t  rhs 
)
inline

Definition at line 193 of file operators.hpp.

◆ operator<=() [7/14]

bool operator<= ( rocprofiler_agent_id_t  lhs,
rocprofiler_agent_id_t  rhs 
)
inline

Definition at line 186 of file operators.hpp.

◆ operator<=() [8/14]

bool operator<= ( rocprofiler_buffer_id_t  lhs,
rocprofiler_buffer_id_t  rhs 
)
inline

Definition at line 188 of file operators.hpp.

◆ operator<=() [9/14]

bool operator<= ( rocprofiler_callback_thread_t  lhs,
rocprofiler_callback_thread_t  rhs 
)
inline

Definition at line 191 of file operators.hpp.

◆ operator<=() [10/14]

bool operator<= ( rocprofiler_context_id_t  lhs,
rocprofiler_context_id_t  rhs 
)
inline

Definition at line 185 of file operators.hpp.

◆ operator<=() [11/14]

bool operator<= ( rocprofiler_counter_id_t  lhs,
rocprofiler_counter_id_t  rhs 
)
inline

Definition at line 189 of file operators.hpp.

◆ operator<=() [12/14]

bool operator<= ( rocprofiler_dim3_t  lhs,
rocprofiler_dim3_t  rhs 
)
inline

Definition at line 196 of file operators.hpp.

◆ operator<=() [13/14]

bool operator<= ( rocprofiler_profile_config_id_t  lhs,
rocprofiler_profile_config_id_t  rhs 
)
inline

Definition at line 190 of file operators.hpp.

◆ operator<=() [14/14]

bool operator<= ( rocprofiler_queue_id_t  lhs,
rocprofiler_queue_id_t  rhs 
)
inline

Definition at line 187 of file operators.hpp.

◆ operator==() [1/14]

bool operator== ( const rocprofiler_agent_v0_t lhs,
const rocprofiler_agent_v0_t rhs 
)
inline

Definition at line 126 of file operators.hpp.

127{
128 return (lhs.id == rhs.id);
129}

◆ operator==() [2/14]

bool operator== ( hsa_agent_t  lhs,
hsa_agent_t  rhs 
)
inline

Definition at line 119 of file operators.hpp.

◆ operator==() [3/14]

bool operator== ( hsa_amd_memory_pool_t  lhs,
hsa_amd_memory_pool_t  rhs 
)
inline

Definition at line 123 of file operators.hpp.

◆ operator==() [4/14]

bool operator== ( hsa_executable_t  lhs,
hsa_executable_t  rhs 
)
inline

Definition at line 121 of file operators.hpp.

◆ operator==() [5/14]

bool operator== ( hsa_region_t  lhs,
hsa_region_t  rhs 
)
inline

Definition at line 122 of file operators.hpp.

◆ operator==() [6/14]

bool operator== ( hsa_signal_t  lhs,
hsa_signal_t  rhs 
)
inline

Definition at line 120 of file operators.hpp.

◆ operator==() [7/14]

bool operator== ( rocprofiler_agent_id_t  lhs,
rocprofiler_agent_id_t  rhs 
)
inline

Definition at line 113 of file operators.hpp.

◆ operator==() [8/14]

bool operator== ( rocprofiler_buffer_id_t  lhs,
rocprofiler_buffer_id_t  rhs 
)
inline

Definition at line 115 of file operators.hpp.

◆ operator==() [9/14]

bool operator== ( rocprofiler_callback_thread_t  lhs,
rocprofiler_callback_thread_t  rhs 
)
inline

Definition at line 118 of file operators.hpp.

◆ operator==() [10/14]

bool operator== ( rocprofiler_context_id_t  lhs,
rocprofiler_context_id_t  rhs 
)
inline

Definition at line 112 of file operators.hpp.

◆ operator==() [11/14]

bool operator== ( rocprofiler_counter_id_t  lhs,
rocprofiler_counter_id_t  rhs 
)
inline

Definition at line 116 of file operators.hpp.

◆ operator==() [12/14]

bool operator== ( rocprofiler_dim3_t  lhs,
rocprofiler_dim3_t  rhs 
)
inline

Definition at line 132 of file operators.hpp.

133{
134 return std::tie(lhs.x, lhs.y, lhs.z) == std::tie(rhs.x, rhs.y, rhs.z);
135}

References rocprofiler_dim3_t::x, rocprofiler_dim3_t::y, and rocprofiler_dim3_t::z.

◆ operator==() [13/14]

bool operator== ( rocprofiler_profile_config_id_t  lhs,
rocprofiler_profile_config_id_t  rhs 
)
inline

Definition at line 117 of file operators.hpp.

◆ operator==() [14/14]

bool operator== ( rocprofiler_queue_id_t  lhs,
rocprofiler_queue_id_t  rhs 
)
inline

Definition at line 114 of file operators.hpp.

◆ operator>() [1/14]

bool operator> ( const rocprofiler_agent_v0_t lhs,
const rocprofiler_agent_v0_t rhs 
)
inline

Definition at line 195 of file operators.hpp.

◆ operator>() [2/14]

bool operator> ( hsa_agent_t  lhs,
hsa_agent_t  rhs 
)
inline

Definition at line 192 of file operators.hpp.

◆ operator>() [3/14]

bool operator> ( hsa_amd_memory_pool_t  lhs,
hsa_amd_memory_pool_t  rhs 
)
inline

Definition at line 198 of file operators.hpp.

◆ operator>() [4/14]

bool operator> ( hsa_executable_t  lhs,
hsa_executable_t  rhs 
)
inline

Definition at line 194 of file operators.hpp.

◆ operator>() [5/14]

bool operator> ( hsa_region_t  lhs,
hsa_region_t  rhs 
)
inline

Definition at line 197 of file operators.hpp.

◆ operator>() [6/14]

bool operator> ( hsa_signal_t  lhs,
hsa_signal_t  rhs 
)
inline

Definition at line 193 of file operators.hpp.

◆ operator>() [7/14]

bool operator> ( rocprofiler_agent_id_t  lhs,
rocprofiler_agent_id_t  rhs 
)
inline

Definition at line 186 of file operators.hpp.

◆ operator>() [8/14]

bool operator> ( rocprofiler_buffer_id_t  lhs,
rocprofiler_buffer_id_t  rhs 
)
inline

Definition at line 188 of file operators.hpp.

◆ operator>() [9/14]

bool operator> ( rocprofiler_callback_thread_t  lhs,
rocprofiler_callback_thread_t  rhs 
)
inline

Definition at line 191 of file operators.hpp.

◆ operator>() [10/14]

bool operator> ( rocprofiler_context_id_t  lhs,
rocprofiler_context_id_t  rhs 
)
inline

Definition at line 185 of file operators.hpp.

◆ operator>() [11/14]

bool operator> ( rocprofiler_counter_id_t  lhs,
rocprofiler_counter_id_t  rhs 
)
inline

Definition at line 189 of file operators.hpp.

◆ operator>() [12/14]

bool operator> ( rocprofiler_dim3_t  lhs,
rocprofiler_dim3_t  rhs 
)
inline

Definition at line 196 of file operators.hpp.

◆ operator>() [13/14]

bool operator> ( rocprofiler_profile_config_id_t  lhs,
rocprofiler_profile_config_id_t  rhs 
)
inline

Definition at line 190 of file operators.hpp.

◆ operator>() [14/14]

bool operator> ( rocprofiler_queue_id_t  lhs,
rocprofiler_queue_id_t  rhs 
)
inline

Definition at line 187 of file operators.hpp.

◆ operator>=() [1/14]

bool operator>= ( const rocprofiler_agent_v0_t lhs,
const rocprofiler_agent_v0_t rhs 
)
inline

Definition at line 195 of file operators.hpp.

◆ operator>=() [2/14]

bool operator>= ( hsa_agent_t  lhs,
hsa_agent_t  rhs 
)
inline

Definition at line 192 of file operators.hpp.

◆ operator>=() [3/14]

bool operator>= ( hsa_amd_memory_pool_t  lhs,
hsa_amd_memory_pool_t  rhs 
)
inline

Definition at line 198 of file operators.hpp.

◆ operator>=() [4/14]

bool operator>= ( hsa_executable_t  lhs,
hsa_executable_t  rhs 
)
inline

Definition at line 194 of file operators.hpp.

◆ operator>=() [5/14]

bool operator>= ( hsa_region_t  lhs,
hsa_region_t  rhs 
)
inline

Definition at line 197 of file operators.hpp.

◆ operator>=() [6/14]

bool operator>= ( hsa_signal_t  lhs,
hsa_signal_t  rhs 
)
inline

Definition at line 193 of file operators.hpp.

◆ operator>=() [7/14]

bool operator>= ( rocprofiler_agent_id_t  lhs,
rocprofiler_agent_id_t  rhs 
)
inline

Definition at line 186 of file operators.hpp.

◆ operator>=() [8/14]

bool operator>= ( rocprofiler_buffer_id_t  lhs,
rocprofiler_buffer_id_t  rhs 
)
inline

Definition at line 188 of file operators.hpp.

◆ operator>=() [9/14]

bool operator>= ( rocprofiler_callback_thread_t  lhs,
rocprofiler_callback_thread_t  rhs 
)
inline

Definition at line 191 of file operators.hpp.

◆ operator>=() [10/14]

bool operator>= ( rocprofiler_context_id_t  lhs,
rocprofiler_context_id_t  rhs 
)
inline

Definition at line 185 of file operators.hpp.

◆ operator>=() [11/14]

bool operator>= ( rocprofiler_counter_id_t  lhs,
rocprofiler_counter_id_t  rhs 
)
inline

Definition at line 189 of file operators.hpp.

◆ operator>=() [12/14]

bool operator>= ( rocprofiler_dim3_t  lhs,
rocprofiler_dim3_t  rhs 
)
inline

Definition at line 196 of file operators.hpp.

◆ operator>=() [13/14]

bool operator>= ( rocprofiler_profile_config_id_t  lhs,
rocprofiler_profile_config_id_t  rhs 
)
inline

Definition at line 190 of file operators.hpp.

◆ operator>=() [14/14]

bool operator>= ( rocprofiler_queue_id_t  lhs,
rocprofiler_queue_id_t  rhs 
)
inline

Definition at line 187 of file operators.hpp.