25 #ifndef TRACE_HELPER_H 26 #define TRACE_HELPER_H 39 #define CASE_STR(x) case x: return #x; 44 inline std::string ToHexString(T v)
46 std::ostringstream ss;
47 ss <<
"0x" << std::hex << v;
57 inline std::string ToString(T v)
59 std::ostringstream ss;
69 std::ostringstream ss;
77 std::ostringstream ss;
79 ss <<
"stream:<null>";
97 default :
return ToHexString(v);
105 return ihipErrorString(v);
110 inline std::string ToString()
119 template <
typename T,
typename... Args>
120 inline std::string ToString(T first, Args... args)
122 return ToString(first) +
", " + ToString(args...) ;
Host-to-Device Copy.
Definition: hip_runtime_api.h:209
Device-to-Host Copy.
Definition: hip_runtime_api.h:210
hipError_t
Definition: hip_runtime_api.h:154
hipMemcpyKind
Definition: hip_runtime_api.h:207
Device-to-Device Copy.
Definition: hip_runtime_api.h:211
Runtime will automatically determine copy-kind based on virtual addresses.
Definition: hip_runtime_api.h:212
Definition: hip_hcc_internal.h:603
Definition: hip_hcc_internal.h:491
Host-to-Host Copy.
Definition: hip_runtime_api.h:208