improve debug for event

Change-Id: If6c0e25729d9964cbe5967833247a6d791d575a0
이 커밋은 다음에 포함됨:
Ben Sander가 2016-09-02 09:46:59 -05:00를 커밋했습니다
1 부모 e76a272d48
커밋 d1fb90966e
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();
};