improve debug for event

Change-Id: If6c0e25729d9964cbe5967833247a6d791d575a0


[ROCm/clr commit: 8a4900b679]
Cette révision appartient à :
Ben Sander
2016-09-01 13:58:54 -05:00
Parent 938933ca2f
révision 5d87b2f50d
2 fichiers modifiés avec 10 ajouts et 1 suppressions
+7
Voir le fichier
@@ -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
Voir le fichier
@@ -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();
};