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.5.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)
 

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 33 of file operators.hpp.

41 { return !(lhs == rhs); }
42
43#define ROCPROFILER_CXX_DEFINE_EQ_HANDLE_OPERATOR(TYPE) \
44 inline bool operator==(TYPE lhs, TYPE rhs) \
45 { \
46 return ::rocprofiler::sdk::operators::equal(lhs, rhs); \
47 }
48
49#define ROCPROFILER_CXX_DEFINE_LT_HANDLE_OPERATOR(TYPE) \
50 inline bool operator<(TYPE lhs, TYPE rhs) \
51 { \
52 return ::rocprofiler::sdk::operators::less(lhs, rhs); \
53 }
54
55#define ROCPROFILER_CXX_DEFINE_COMPARE_OPERATORS(TYPE) \
56 inline bool operator>(TYPE lhs, TYPE rhs) { return (lhs == rhs || !(lhs < rhs)); } \
57 inline bool operator<=(TYPE lhs, TYPE rhs) { return (lhs == rhs || lhs < rhs); } \
58 inline bool operator>=(TYPE lhs, TYPE rhs) { return !(lhs < rhs); }
59
60namespace rocprofiler
61{
62namespace sdk
63{
64namespace operators
65{
66template <typename Tp>
67bool
68equal(Tp lhs, Tp rhs) ROCPROFILER_ATTRIBUTE(pure);
69
70template <typename Tp>
71bool
72less(Tp lhs, Tp rhs) ROCPROFILER_ATTRIBUTE(pure);
73
74template <typename Tp>
75bool
76equal(Tp lhs, Tp rhs)
77{
78 static_assert(sizeof(Tp) == sizeof(uint64_t), "error! only for opaque handle types");
79 return lhs.handle == rhs.handle;
80}
81
82template <typename Tp>
83bool
84less(Tp lhs, Tp rhs)
85{
86 static_assert(sizeof(Tp) == sizeof(uint64_t), "error! only for opaque handle types");
87 return lhs.handle < rhs.handle;
88}
89} // namespace operators
90} // namespace sdk
91} // namespace rocprofiler
92
93// declaration of operator== and operator!=
103ROCPROFILER_CXX_DECLARE_OPERATORS(hsa_executable_t)
106
107// definitions of operator==
118
119inline bool
121{
122 return (lhs.id == rhs.id);
123}
124
125inline bool
127{
128 return std::tie(lhs.x, lhs.y, lhs.z) == std::tie(rhs.x, rhs.y, rhs.z);
129}
130
131// definitions of operator!=
144
145// definitions of operator<
156
157inline bool
159{
160 return (lhs.id < rhs.id);
161}
162
163inline bool
165{
166 const auto magnitude = [](rocprofiler_dim3_t dim_v) { return dim_v.x * dim_v.y * dim_v.z; };
167 auto lhs_m = magnitude(lhs);
168 auto rhs_m = magnitude(rhs);
169
170 return (lhs_m == rhs_m) ? std::tie(lhs.x, lhs.y, lhs.z) < std::tie(rhs.x, rhs.y, rhs.z)
171 : (lhs_m < rhs_m);
172}
173
174// definitions of operator>, operator<=, operator>=
187
188// cleanup defines
189#undef ROCPROFILER_CXX_DECLARE_OPERATORS
190#undef ROCPROFILER_CXX_DEFINE_NE_OPERATOR
191#undef ROCPROFILER_CXX_DEFINE_EQ_HANDLE_OPERATOR
192#undef ROCPROFILER_CXX_DEFINE_LT_HANDLE_OPERATOR
193#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:569
uint32_t y
Definition fwd.h:568
uint32_t x
Definition fwd.h:567
Agent Identifier.
Definition fwd.h:541
Context ID.
Definition fwd.h:502
Counter ID.
Definition fwd.h:549
Multi-dimensional struct of data used to describe GPU workgroup and grid sizes.
Definition fwd.h:566
Profile Configurations.
Definition fwd.h:558
opaque handle to an internal thread identifier which delivers callbacks for buffers
bool less(Tp lhs, Tp rhs) ROCPROFILER_ATTRIBUTE(pure)
Definition operators.hpp:85
bool equal(Tp lhs, Tp rhs) ROCPROFILER_ATTRIBUTE(pure)
Definition operators.hpp:77
#define ROCPROFILER_CXX_DECLARE_OPERATORS(TYPE)
Definition operators.hpp:33
#define ROCPROFILER_CXX_DEFINE_LT_HANDLE_OPERATOR(TYPE)
Definition operators.hpp:50
#define ROCPROFILER_CXX_DEFINE_COMPARE_OPERATORS(TYPE)
Definition operators.hpp:56
#define ROCPROFILER_CXX_DEFINE_EQ_HANDLE_OPERATOR(TYPE)
Definition operators.hpp:44
#define ROCPROFILER_CXX_DEFINE_NE_OPERATOR(TYPE)
Definition operators.hpp:41

◆ 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 56 of file operators.hpp.

57 { 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); }

◆ 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 44 of file operators.hpp.

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

◆ 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 50 of file operators.hpp.

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

◆ 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 41 of file operators.hpp.

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

Function Documentation

◆ operator!=() [1/12]

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

Definition at line 143 of file operators.hpp.

◆ operator!=() [2/12]

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

Definition at line 140 of file operators.hpp.

◆ operator!=() [3/12]

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

Definition at line 142 of file operators.hpp.

◆ operator!=() [4/12]

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

Definition at line 141 of file operators.hpp.

◆ operator!=() [5/12]

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

Definition at line 134 of file operators.hpp.

◆ operator!=() [6/12]

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

Definition at line 136 of file operators.hpp.

◆ operator!=() [7/12]

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

Definition at line 139 of file operators.hpp.

◆ operator!=() [8/12]

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

Definition at line 133 of file operators.hpp.

◆ operator!=() [9/12]

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

Definition at line 137 of file operators.hpp.

◆ operator!=() [10/12]

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

Definition at line 144 of file operators.hpp.

◆ operator!=() [11/12]

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

Definition at line 138 of file operators.hpp.

◆ operator!=() [12/12]

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

Definition at line 135 of file operators.hpp.

◆ operator<() [1/12]

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

Definition at line 158 of file operators.hpp.

160{
161 return (lhs.id < rhs.id);
162}

◆ operator<() [2/12]

bool operator< ( hsa_agent_t  lhs,
hsa_agent_t  rhs 
)
inline

Definition at line 154 of file operators.hpp.

◆ operator<() [3/12]

bool operator< ( hsa_executable_t  lhs,
hsa_executable_t  rhs 
)
inline

Definition at line 156 of file operators.hpp.

◆ operator<() [4/12]

bool operator< ( hsa_signal_t  lhs,
hsa_signal_t  rhs 
)
inline

Definition at line 155 of file operators.hpp.

◆ operator<() [5/12]

bool operator< ( rocprofiler_agent_id_t  lhs,
rocprofiler_agent_id_t  rhs 
)
inline

Definition at line 148 of file operators.hpp.

◆ operator<() [6/12]

bool operator< ( rocprofiler_buffer_id_t  lhs,
rocprofiler_buffer_id_t  rhs 
)
inline

Definition at line 150 of file operators.hpp.

◆ operator<() [7/12]

bool operator< ( rocprofiler_callback_thread_t  lhs,
rocprofiler_callback_thread_t  rhs 
)
inline

Definition at line 153 of file operators.hpp.

◆ operator<() [8/12]

bool operator< ( rocprofiler_context_id_t  lhs,
rocprofiler_context_id_t  rhs 
)
inline

Definition at line 147 of file operators.hpp.

◆ operator<() [9/12]

bool operator< ( rocprofiler_counter_id_t  lhs,
rocprofiler_counter_id_t  rhs 
)
inline

Definition at line 151 of file operators.hpp.

◆ operator<() [10/12]

bool operator< ( rocprofiler_dim3_t  lhs,
rocprofiler_dim3_t  rhs 
)
inline

Definition at line 164 of file operators.hpp.

166{
167 const auto magnitude = [](rocprofiler_dim3_t dim_v) { return dim_v.x * dim_v.y * dim_v.z; };
168 auto lhs_m = magnitude(lhs);
169 auto rhs_m = magnitude(rhs);
170
171 return (lhs_m == rhs_m) ? std::tie(lhs.x, lhs.y, lhs.z) < std::tie(rhs.x, rhs.y, rhs.z)
172 : (lhs_m < rhs_m);
173}

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

◆ operator<() [11/12]

bool operator< ( rocprofiler_profile_config_id_t  lhs,
rocprofiler_profile_config_id_t  rhs 
)
inline

Definition at line 152 of file operators.hpp.

◆ operator<() [12/12]

bool operator< ( rocprofiler_queue_id_t  lhs,
rocprofiler_queue_id_t  rhs 
)
inline

Definition at line 149 of file operators.hpp.

◆ operator<=() [1/12]

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

Definition at line 186 of file operators.hpp.

◆ operator<=() [2/12]

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

Definition at line 183 of file operators.hpp.

◆ operator<=() [3/12]

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

Definition at line 185 of file operators.hpp.

◆ operator<=() [4/12]

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

Definition at line 184 of file operators.hpp.

◆ operator<=() [5/12]

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

Definition at line 177 of file operators.hpp.

◆ operator<=() [6/12]

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

Definition at line 179 of file operators.hpp.

◆ operator<=() [7/12]

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

Definition at line 182 of file operators.hpp.

◆ operator<=() [8/12]

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

Definition at line 176 of file operators.hpp.

◆ operator<=() [9/12]

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

Definition at line 180 of file operators.hpp.

◆ operator<=() [10/12]

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

Definition at line 187 of file operators.hpp.

◆ operator<=() [11/12]

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

Definition at line 181 of file operators.hpp.

◆ operator<=() [12/12]

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

Definition at line 178 of file operators.hpp.

◆ operator==() [1/12]

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

Definition at line 121 of file operators.hpp.

122{
123 return (lhs.id == rhs.id);
124}

◆ operator==() [2/12]

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

Definition at line 116 of file operators.hpp.

◆ operator==() [3/12]

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

Definition at line 118 of file operators.hpp.

◆ operator==() [4/12]

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

Definition at line 117 of file operators.hpp.

◆ operator==() [5/12]

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

Definition at line 110 of file operators.hpp.

◆ operator==() [6/12]

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

Definition at line 112 of file operators.hpp.

◆ operator==() [7/12]

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

Definition at line 115 of file operators.hpp.

◆ operator==() [8/12]

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

Definition at line 109 of file operators.hpp.

◆ operator==() [9/12]

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

Definition at line 113 of file operators.hpp.

◆ operator==() [10/12]

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

Definition at line 127 of file operators.hpp.

128{
129 return std::tie(lhs.x, lhs.y, lhs.z) == std::tie(rhs.x, rhs.y, rhs.z);
130}

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

◆ operator==() [11/12]

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

Definition at line 114 of file operators.hpp.

◆ operator==() [12/12]

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

Definition at line 111 of file operators.hpp.

◆ operator>() [1/12]

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

Definition at line 186 of file operators.hpp.

◆ operator>() [2/12]

bool operator> ( hsa_agent_t  lhs,
hsa_agent_t  rhs 
)
inline

Definition at line 183 of file operators.hpp.

◆ operator>() [3/12]

bool operator> ( hsa_executable_t  lhs,
hsa_executable_t  rhs 
)
inline

Definition at line 185 of file operators.hpp.

◆ operator>() [4/12]

bool operator> ( hsa_signal_t  lhs,
hsa_signal_t  rhs 
)
inline

Definition at line 184 of file operators.hpp.

◆ operator>() [5/12]

bool operator> ( rocprofiler_agent_id_t  lhs,
rocprofiler_agent_id_t  rhs 
)
inline

Definition at line 177 of file operators.hpp.

◆ operator>() [6/12]

bool operator> ( rocprofiler_buffer_id_t  lhs,
rocprofiler_buffer_id_t  rhs 
)
inline

Definition at line 179 of file operators.hpp.

◆ operator>() [7/12]

bool operator> ( rocprofiler_callback_thread_t  lhs,
rocprofiler_callback_thread_t  rhs 
)
inline

Definition at line 182 of file operators.hpp.

◆ operator>() [8/12]

bool operator> ( rocprofiler_context_id_t  lhs,
rocprofiler_context_id_t  rhs 
)
inline

Definition at line 176 of file operators.hpp.

◆ operator>() [9/12]

bool operator> ( rocprofiler_counter_id_t  lhs,
rocprofiler_counter_id_t  rhs 
)
inline

Definition at line 180 of file operators.hpp.

◆ operator>() [10/12]

bool operator> ( rocprofiler_dim3_t  lhs,
rocprofiler_dim3_t  rhs 
)
inline

Definition at line 187 of file operators.hpp.

◆ operator>() [11/12]

bool operator> ( rocprofiler_profile_config_id_t  lhs,
rocprofiler_profile_config_id_t  rhs 
)
inline

Definition at line 181 of file operators.hpp.

◆ operator>() [12/12]

bool operator> ( rocprofiler_queue_id_t  lhs,
rocprofiler_queue_id_t  rhs 
)
inline

Definition at line 178 of file operators.hpp.

◆ operator>=() [1/12]

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

Definition at line 186 of file operators.hpp.

◆ operator>=() [2/12]

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

Definition at line 183 of file operators.hpp.

◆ operator>=() [3/12]

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

Definition at line 185 of file operators.hpp.

◆ operator>=() [4/12]

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

Definition at line 184 of file operators.hpp.

◆ operator>=() [5/12]

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

Definition at line 177 of file operators.hpp.

◆ operator>=() [6/12]

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

Definition at line 179 of file operators.hpp.

◆ operator>=() [7/12]

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

Definition at line 182 of file operators.hpp.

◆ operator>=() [8/12]

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

Definition at line 176 of file operators.hpp.

◆ operator>=() [9/12]

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

Definition at line 180 of file operators.hpp.

◆ operator>=() [10/12]

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

Definition at line 187 of file operators.hpp.

◆ operator>=() [11/12]

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

Definition at line 181 of file operators.hpp.

◆ operator>=() [12/12]

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

Definition at line 178 of file operators.hpp.