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

Change-Id: Icbcedafb1812a1be03837f6cb47283eb0d382ad2


[ROCm/roctracer commit: 9d4a58f6da]
Tento commit je obsažen v:
Evgeny
2020-05-27 04:21:31 -05:00
odevzdal Evgeny Shcherbakov
rodič 755333d0b8
revize ecf2c9e22b
2 změnil soubory, kde provedl 6 přidání a 2 odebrání
+5 -1
Zobrazit soubor
@@ -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
Zobrazit soubor
@@ -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) ||