improve debug for event

Change-Id: If6c0e25729d9964cbe5967833247a6d791d575a0


[ROCm/hip commit: d1fb90966e]
此提交包含在:
Ben Sander
2016-09-01 13:58:54 -05:00
父節點 bb0afa4e38
當前提交 bcd1bdb132
共有 2 個檔案被更改,包括 10 行新增 和 1 行删除
+7
查看文件
@@ -715,5 +715,12 @@ inline std::ostream & operator<<(std::ostream& os, const dim3& s)
return os;
}
// Stream printf functions:
inline std::ostream& operator<<(std::ostream& os, const hipEvent_t& e)
{
os << "event:" << std::hex << static_cast<void*> (e);
return os;
}
#endif
+3 -1
查看文件
@@ -63,7 +63,9 @@ inline std::string ToString(T v)
template <>
inline std::string ToString(hipEvent_t v)
{
return ToString(&v);
std::ostringstream ss;
ss << v;
return ss.str();
};