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

Change-Id: Icbcedafb1812a1be03837f6cb47283eb0d382ad2
Este commit está contenido en:
Evgeny
2020-05-27 04:21:31 -05:00
cometido por Evgeny Shcherbakov
padre da4b244887
commit 9d4a58f6da
Se han modificado 2 ficheros con 6 adiciones y 2 borrados
+5 -1
Ver fichero
@@ -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
Ver fichero
@@ -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) ||