improve debug for event
Change-Id: If6c0e25729d9964cbe5967833247a6d791d575a0
이 커밋은 다음에 포함됨:
1 부모
e76a272d48
커밋
d1fb90966e
2 파일이 변경됨
+10
-1
검색과 일치하는 파일 없음
@@ -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
|
||||
@@ -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();
|
||||
};
|
||||
|
||||
|
||||
|
||||
새 이슈에서 참조
사용자 차단