Format ostream ops

Change-Id: I8c609b1ef82e02f3547541c2cc47dec3a4f1c7b3
This commit is contained in:
Evgeny
2020-08-28 06:31:24 -05:00
parent 156d9327cc
commit e9b8de644e
3 changed files with 72 additions and 15 deletions
+14
View File
@@ -23,6 +23,20 @@ THE SOFTWARE.
#ifndef INC_ROCTRACER_HIP_H_
#define INC_ROCTRACER_HIP_H_
#ifdef __cplusplus
#include <iostream>
inline static std::ostream& operator<<(std::ostream& out, const unsigned char& v) {
out << (unsigned int)v;
return out;
}
inline static std::ostream& operator<<(std::ostream& out, const char& v) {
out << (unsigned char)v;
return out;
}
#endif // __cplusplus
#include <hip_ostream_ops.h>
#include <hip/hip_runtime.h>
#include <hip/hcc_detail/hip_prof_str.h>