25 #ifndef TRACE_HELPER_H
26 #define TRACE_HELPER_H
40 #define CASE_STR(x) case x: return #x;
45 inline std::string ToHexString(T v)
47 std::ostringstream ss;
48 ss <<
"0x" << std::hex << v;
58 inline std::string ToString(T v)
60 std::ostringstream ss;
70 std::ostringstream ss;
81 std::ostringstream ss;
83 ss <<
"stream:<null>";
101 default :
return ToHexString(v);
109 return ihipErrorString(v);
114 inline std::string ToString()
123 template <
typename T,
typename... Args>
124 inline std::string ToString(T first, Args... args)
126 return ToString(first) +
", " + ToString(args...) ;
Host-to-Device Copy.
Definition: hip_runtime_api.h:167
Device-to-Host Copy.
Definition: hip_runtime_api.h:168
hipError_t
Definition: hip_runtime_api.h:152
hipMemcpyKind
Definition: hip_runtime_api.h:165
Device-to-Device Copy.
Definition: hip_runtime_api.h:169
Definition: hip_hcc.h:558
Runtime will automatically determine copy-kind based on virtual addresses.
Definition: hip_runtime_api.h:170
Definition: hip_hcc.h:463
Host-to-Host Copy.
Definition: hip_runtime_api.h:166