P4 to Git Change 2044309 by cpaquot@cpaquot-ocl-lc-lnx on 2019/12/11 19:19:15
SWDEV-145570 - [hip] special case const char* for logs in case it's a null pointer. Affected files ... ... //depot/stg/opencl/drivers/opencl/api/hip/trace_helper.h#3 edit
This commit is contained in:
@@ -125,6 +125,11 @@ inline std::string ToString(T v) {
|
||||
return ss.str();
|
||||
};
|
||||
|
||||
template <>
|
||||
inline std::string ToString(const char* v) {
|
||||
return ToHexString<const void*>(v);
|
||||
};
|
||||
|
||||
template <>
|
||||
inline std::string ToString(hipFunction_t v) {
|
||||
std::ostringstream ss;
|
||||
|
||||
Reference in New Issue
Block a user