improve debug for event

Change-Id: If6c0e25729d9964cbe5967833247a6d791d575a0
Este cometimento está contido em:
Ben Sander cometeu 2016-09-02 09:46:59 -05:00
1 ascendente e76a272d48
cometimento d1fb90966e
2 ficheiros modificados
+10 -1

Não existem ficheiros que correspondam à sua pesquisa

+7
Ver ficheiro
@@ -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
Ver ficheiro
@@ -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();
};