Adding Kernel Names instead Kernel Execution

Change-Id: I102a8e741eeee18d240a62ff33e9b94e8f57d5ff
This commit is contained in:
Ammar ELWazir
2023-10-25 13:51:58 +00:00
committed by Gopesh Bhardwaj
parent d4c2546336
commit 7e8348b017
2 changed files with 8 additions and 2 deletions
+5 -2
View File
@@ -316,8 +316,11 @@ class file_plugin_t {
output_file = get_output_file(ACTIVITY_DOMAIN_HIP_OPS);
ss << std::dec << begin->begin_ns << ":" << begin->end_ns << " " << begin->device_id
<< ":" << begin->queue_id << " " << name << ":" << begin->correlation_id << ":"
<< GetPid() << "\n";
<< ":" << begin->queue_id << " "
<< ((begin->op == HIP_OP_ID_DISPATCH && begin->kernel_name != nullptr)
? cxx_demangle(begin->kernel_name)
: name)
<< ":" << begin->correlation_id << ":" << GetPid() << "\n";
*output_file << ss.str();
break;
}