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_address_t lhs, rocprofiler_address_t rhs) ROCPROFILER_ATTRIBUTE(pure)
 
bool operator!= (rocprofiler_address_t lhs, rocprofiler_address_t rhs) ROCPROFILER_ATTRIBUTE(pure)
 
bool operator< (rocprofiler_address_t lhs, rocprofiler_address_t rhs) ROCPROFILER_ATTRIBUTE(pure)
 
bool operator> (rocprofiler_address_t lhs, rocprofiler_address_t rhs) ROCPROFILER_ATTRIBUTE(pure)
 
bool operator<= (rocprofiler_address_t lhs, rocprofiler_address_t rhs) ROCPROFILER_ATTRIBUTE(pure)
 
bool operator>= (rocprofiler_address_t lhs, rocprofiler_address_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!=
105ROCPROFILER_CXX_DECLARE_OPERATORS(hsa_executable_t)
109ROCPROFILER_CXX_DECLARE_OPERATORS(hsa_amd_memory_pool_t)
110
111// definitions of operator==
125
126inline bool
128{
129 return (lhs.id == rhs.id);
130}
131
132inline bool
134{
135 return std::tie(lhs.x, lhs.y, lhs.z) == std::tie(rhs.x, rhs.y, rhs.z);
136}
137
138// definitions of operator!=
153ROCPROFILER_CXX_DEFINE_NE_OPERATOR(hsa_amd_memory_pool_t)
154
155// definitions of operator<
169
170inline bool
172{
173 return (lhs.id < rhs.id);
174}
175
176inline bool
178{
179 const auto magnitude = [](rocprofiler_dim3_t dim_v) { return dim_v.x * dim_v.y * dim_v.z; };
180 auto lhs_m = magnitude(lhs);
181 auto rhs_m = magnitude(rhs);
182
183 return (lhs_m == rhs_m) ? std::tie(lhs.x, lhs.y, lhs.z) < std::tie(rhs.x, rhs.y, rhs.z)
184 : (lhs_m < rhs_m);
185}
186
187// definitions of operator>, operator<=, operator>=
202ROCPROFILER_CXX_DEFINE_COMPARE_OPERATORS(hsa_amd_memory_pool_t)
203
204// cleanup defines
205#undef ROCPROFILER_CXX_DECLARE_OPERATORS
206#undef ROCPROFILER_CXX_DEFINE_NE_OPERATOR
207#undef ROCPROFILER_CXX_DEFINE_EQ_HANDLE_OPERATOR
208#undef ROCPROFILER_CXX_DEFINE_LT_HANDLE_OPERATOR
209#undef ROCPROFILER_CXX_DEFINE_COMPARE_OPERATORS
rocprofiler_agent_id_t id
Internal opaque identifier.
Definition agent.h:134
Stores the properties of an agent (CPU, GPU, etc.)
Definition agent.h:131
uint32_t z
Definition fwd.h:622
uint32_t y
Definition fwd.h:621
uint32_t x
Definition fwd.h:620
Agent Identifier.
Definition fwd.h:594
Context ID.
Definition fwd.h:555
Counter ID.
Definition fwd.h:602
Multi-dimensional struct of data used to describe GPU workgroup and grid sizes.
Definition fwd.h:619
Profile Configurations.
Definition fwd.h:611
Stores memory address for profiling.
Definition fwd.h:530
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/15]

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

Definition at line 151 of file operators.hpp.

◆ operator!=() [2/15]

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

Definition at line 148 of file operators.hpp.

◆ operator!=() [3/15]

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

Definition at line 154 of file operators.hpp.

◆ operator!=() [4/15]

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

Definition at line 150 of file operators.hpp.

◆ operator!=() [5/15]

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

Definition at line 153 of file operators.hpp.

◆ operator!=() [6/15]

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

Definition at line 149 of file operators.hpp.

◆ operator!=() [7/15]

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

Definition at line 141 of file operators.hpp.

◆ operator!=() [8/15]

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

Definition at line 142 of file operators.hpp.

◆ operator!=() [9/15]

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

Definition at line 144 of file operators.hpp.

◆ operator!=() [10/15]

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

Definition at line 147 of file operators.hpp.

◆ operator!=() [11/15]

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

Definition at line 140 of file operators.hpp.

◆ operator!=() [12/15]

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

Definition at line 145 of file operators.hpp.

◆ operator!=() [13/15]

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

Definition at line 152 of file operators.hpp.

◆ operator!=() [14/15]

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

Definition at line 146 of file operators.hpp.

◆ operator!=() [15/15]

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

Definition at line 143 of file operators.hpp.

◆ operator<() [1/15]

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

Definition at line 171 of file operators.hpp.

173{
174 return (lhs.id < rhs.id);
175}

◆ operator<() [2/15]

bool operator< ( hsa_agent_t  lhs,
hsa_agent_t  rhs 
)
inline

Definition at line 165 of file operators.hpp.

◆ operator<() [3/15]

bool operator< ( hsa_amd_memory_pool_t  lhs,
hsa_amd_memory_pool_t  rhs 
)
inline

Definition at line 169 of file operators.hpp.

◆ operator<() [4/15]

bool operator< ( hsa_executable_t  lhs,
hsa_executable_t  rhs 
)
inline

Definition at line 167 of file operators.hpp.

◆ operator<() [5/15]

bool operator< ( hsa_region_t  lhs,
hsa_region_t  rhs 
)
inline

Definition at line 168 of file operators.hpp.

◆ operator<() [6/15]

bool operator< ( hsa_signal_t  lhs,
hsa_signal_t  rhs 
)
inline

Definition at line 166 of file operators.hpp.

◆ operator<() [7/15]

bool operator< ( rocprofiler_address_t  lhs,
rocprofiler_address_t  rhs 
)
inline

Definition at line 158 of file operators.hpp.

◆ operator<() [8/15]

bool operator< ( rocprofiler_agent_id_t  lhs,
rocprofiler_agent_id_t  rhs 
)
inline

Definition at line 159 of file operators.hpp.

◆ operator<() [9/15]

bool operator< ( rocprofiler_buffer_id_t  lhs,
rocprofiler_buffer_id_t  rhs 
)
inline

Definition at line 161 of file operators.hpp.

◆ operator<() [10/15]

bool operator< ( rocprofiler_callback_thread_t  lhs,
rocprofiler_callback_thread_t  rhs 
)
inline

Definition at line 164 of file operators.hpp.

◆ operator<() [11/15]

bool operator< ( rocprofiler_context_id_t  lhs,
rocprofiler_context_id_t  rhs 
)
inline

Definition at line 157 of file operators.hpp.

◆ operator<() [12/15]

bool operator< ( rocprofiler_counter_id_t  lhs,
rocprofiler_counter_id_t  rhs 
)
inline

Definition at line 162 of file operators.hpp.

◆ operator<() [13/15]

bool operator< ( rocprofiler_dim3_t  lhs,
rocprofiler_dim3_t  rhs 
)
inline

Definition at line 177 of file operators.hpp.

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

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

◆ operator<() [14/15]

bool operator< ( rocprofiler_profile_config_id_t  lhs,
rocprofiler_profile_config_id_t  rhs 
)
inline

Definition at line 163 of file operators.hpp.

◆ operator<() [15/15]

bool operator< ( rocprofiler_queue_id_t  lhs,
rocprofiler_queue_id_t  rhs 
)
inline

Definition at line 160 of file operators.hpp.

◆ operator<=() [1/15]

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

Definition at line 200 of file operators.hpp.

◆ operator<=() [2/15]

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

Definition at line 197 of file operators.hpp.

◆ operator<=() [3/15]

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

Definition at line 203 of file operators.hpp.

◆ operator<=() [4/15]

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

Definition at line 199 of file operators.hpp.

◆ operator<=() [5/15]

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

Definition at line 202 of file operators.hpp.

◆ operator<=() [6/15]

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

Definition at line 198 of file operators.hpp.

◆ operator<=() [7/15]

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

Definition at line 190 of file operators.hpp.

◆ operator<=() [8/15]

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

Definition at line 191 of file operators.hpp.

◆ operator<=() [9/15]

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

Definition at line 193 of file operators.hpp.

◆ operator<=() [10/15]

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

Definition at line 196 of file operators.hpp.

◆ operator<=() [11/15]

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

Definition at line 189 of file operators.hpp.

◆ operator<=() [12/15]

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

Definition at line 194 of file operators.hpp.

◆ operator<=() [13/15]

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

Definition at line 201 of file operators.hpp.

◆ operator<=() [14/15]

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

Definition at line 195 of file operators.hpp.

◆ operator<=() [15/15]

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

Definition at line 192 of file operators.hpp.

◆ operator==() [1/15]

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

Definition at line 128 of file operators.hpp.

129{
130 return (lhs.id == rhs.id);
131}

◆ operator==() [2/15]

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

Definition at line 121 of file operators.hpp.

◆ operator==() [3/15]

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

Definition at line 125 of file operators.hpp.

◆ operator==() [4/15]

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

Definition at line 123 of file operators.hpp.

◆ operator==() [5/15]

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

Definition at line 124 of file operators.hpp.

◆ operator==() [6/15]

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

Definition at line 122 of file operators.hpp.

◆ operator==() [7/15]

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

Definition at line 114 of file operators.hpp.

◆ operator==() [8/15]

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

Definition at line 115 of file operators.hpp.

◆ operator==() [9/15]

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

Definition at line 117 of file operators.hpp.

◆ operator==() [10/15]

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

Definition at line 120 of file operators.hpp.

◆ operator==() [11/15]

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

Definition at line 113 of file operators.hpp.

◆ operator==() [12/15]

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

Definition at line 118 of file operators.hpp.

◆ operator==() [13/15]

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

Definition at line 134 of file operators.hpp.

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

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

◆ operator==() [14/15]

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

Definition at line 119 of file operators.hpp.

◆ operator==() [15/15]

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

Definition at line 116 of file operators.hpp.

◆ operator>() [1/15]

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

Definition at line 200 of file operators.hpp.

◆ operator>() [2/15]

bool operator> ( hsa_agent_t  lhs,
hsa_agent_t  rhs 
)
inline

Definition at line 197 of file operators.hpp.

◆ operator>() [3/15]

bool operator> ( hsa_amd_memory_pool_t  lhs,
hsa_amd_memory_pool_t  rhs 
)
inline

Definition at line 203 of file operators.hpp.

◆ operator>() [4/15]

bool operator> ( hsa_executable_t  lhs,
hsa_executable_t  rhs 
)
inline

Definition at line 199 of file operators.hpp.

◆ operator>() [5/15]

bool operator> ( hsa_region_t  lhs,
hsa_region_t  rhs 
)
inline

Definition at line 202 of file operators.hpp.

◆ operator>() [6/15]

bool operator> ( hsa_signal_t  lhs,
hsa_signal_t  rhs 
)
inline

Definition at line 198 of file operators.hpp.

◆ operator>() [7/15]

bool operator> ( rocprofiler_address_t  lhs,
rocprofiler_address_t  rhs 
)
inline

Definition at line 190 of file operators.hpp.

◆ operator>() [8/15]

bool operator> ( rocprofiler_agent_id_t  lhs,
rocprofiler_agent_id_t  rhs 
)
inline

Definition at line 191 of file operators.hpp.

◆ operator>() [9/15]

bool operator> ( rocprofiler_buffer_id_t  lhs,
rocprofiler_buffer_id_t  rhs 
)
inline

Definition at line 193 of file operators.hpp.

◆ operator>() [10/15]

bool operator> ( rocprofiler_callback_thread_t  lhs,
rocprofiler_callback_thread_t  rhs 
)
inline

Definition at line 196 of file operators.hpp.

◆ operator>() [11/15]

bool operator> ( rocprofiler_context_id_t  lhs,
rocprofiler_context_id_t  rhs 
)
inline

Definition at line 189 of file operators.hpp.

◆ operator>() [12/15]

bool operator> ( rocprofiler_counter_id_t  lhs,
rocprofiler_counter_id_t  rhs 
)
inline

Definition at line 194 of file operators.hpp.

◆ operator>() [13/15]

bool operator> ( rocprofiler_dim3_t  lhs,
rocprofiler_dim3_t  rhs 
)
inline

Definition at line 201 of file operators.hpp.

◆ operator>() [14/15]

bool operator> ( rocprofiler_profile_config_id_t  lhs,
rocprofiler_profile_config_id_t  rhs 
)
inline

Definition at line 195 of file operators.hpp.

◆ operator>() [15/15]

bool operator> ( rocprofiler_queue_id_t  lhs,
rocprofiler_queue_id_t  rhs 
)
inline

Definition at line 192 of file operators.hpp.

◆ operator>=() [1/15]

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

Definition at line 200 of file operators.hpp.

◆ operator>=() [2/15]

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

Definition at line 197 of file operators.hpp.

◆ operator>=() [3/15]

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

Definition at line 203 of file operators.hpp.

◆ operator>=() [4/15]

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

Definition at line 199 of file operators.hpp.

◆ operator>=() [5/15]

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

Definition at line 202 of file operators.hpp.

◆ operator>=() [6/15]

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

Definition at line 198 of file operators.hpp.

◆ operator>=() [7/15]

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

Definition at line 190 of file operators.hpp.

◆ operator>=() [8/15]

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

Definition at line 191 of file operators.hpp.

◆ operator>=() [9/15]

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

Definition at line 193 of file operators.hpp.

◆ operator>=() [10/15]

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

Definition at line 196 of file operators.hpp.

◆ operator>=() [11/15]

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

Definition at line 189 of file operators.hpp.

◆ operator>=() [12/15]

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

Definition at line 194 of file operators.hpp.

◆ operator>=() [13/15]

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

Definition at line 201 of file operators.hpp.

◆ operator>=() [14/15]

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

Definition at line 195 of file operators.hpp.

◆ operator>=() [15/15]

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

Definition at line 192 of file operators.hpp.