disabling kernel name printing for kernel launches by func pointer and ostream operator template

Change-Id: Icbcedafb1812a1be03837f6cb47283eb0d382ad2
Tá an tiomantas seo le fáil i:
Evgeny
2020-05-27 04:21:31 -05:00
tiomanta ag Evgeny Shcherbakov
tuismitheoir da4b244887
tiomantas 9d4a58f6da
D'athraigh 2 comhad le 6 breiseanna agus 2 scriosta
+5 -1
Féach ar an gComhad
@@ -85,7 +85,11 @@ header = \
header_hip = \
'template <typename T>\n' + \
' std::ostream& operator<<(std::ostream& out, const T& v) { using std::operator<<; out << v; return out; }\n' + \
' std::ostream& operator<<(std::ostream& out, const T& v) {\n' + \
' using std::operator<<;\n' + \
' static bool recursion = false;\n' + \
' if (recursion == false) { recursion = true; out << v; recursion = false; }\n' + \
' return out; }\n' + \
'std::ostream& operator<<(std::ostream& out, void* v) { using std::operator<<; out << std::hex << v; return out; }\n' + \
'std::ostream& operator<<(std::ostream& out, const void* v) { using std::operator<<; out << std::hex << v; return out; }\n' + \
'std::ostream& operator<<(std::ostream& out, bool v) { using std::operator<<; out << std::hex << "<bool " << "0x" << v << std::dec << ">"; return out; }\n' + \
+1 -1
Féach ar an gComhad
@@ -346,7 +346,7 @@ roctracer::TraceBuffer<hip_api_trace_entry_t> hip_api_trace_buffer("HIP", 0x2000
static inline bool is_hip_kernel_launch_api(const uint32_t& cid) {
bool ret =
#if HIP_VDI
#if 0 // HIP_VDI
(cid == HIP_API_ID_hipLaunchKernel) ||
(cid == HIP_API_ID_hipExtLaunchMultiKernelMultiDevice) ||
(cid == HIP_API_ID_hipLaunchCooperativeKernel) ||