From 9d4a58f6da77509a192029c7ab41853b7e160d61 Mon Sep 17 00:00:00 2001 From: Evgeny Date: Wed, 27 May 2020 04:21:31 -0500 Subject: [PATCH] disabling kernel name printing for kernel launches by func pointer and ostream operator template Change-Id: Icbcedafb1812a1be03837f6cb47283eb0d382ad2 --- script/gen_ostream_ops.py | 6 +++++- test/tool/tracer_tool.cpp | 2 +- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/script/gen_ostream_ops.py b/script/gen_ostream_ops.py index aa7d566e89..c59d2a2117 100755 --- a/script/gen_ostream_ops.py +++ b/script/gen_ostream_ops.py @@ -85,7 +85,11 @@ header = \ header_hip = \ 'template \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 << ""; return out; }\n' + \ diff --git a/test/tool/tracer_tool.cpp b/test/tool/tracer_tool.cpp index b14c9dd154..c5ed7a840d 100644 --- a/test/tool/tracer_tool.cpp +++ b/test/tool/tracer_tool.cpp @@ -346,7 +346,7 @@ roctracer::TraceBuffer 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) ||