PLAT-130888: Added kernel dispatch ID to txt

Change-Id: I7852a98b9b7be0098b45f5a433f6cbba0617eb05


[ROCm/rocprofiler commit: c1afcb95e7]
This commit is contained in:
Giovanni LB
2023-04-14 19:17:26 -03:00
committed by Giovanni Baraldi
parent 375d5c1b07
commit 2a8c6b0a47
+2 -1
View File
@@ -96,9 +96,10 @@ class att_plugin_t {
bIncrementVersion = att_file_exists(outpath + fss + "_kernel.txt");
}
auto dispatch_id = att_tracer_record->header.id.handle;
std::string fname =
outpath + name_demangled + "_v" + std::to_string(file_iteration) + "_kernel.txt";
std::ofstream(fname.c_str()) << name_demangled << ": " << kernel_name_c << '\n';
std::ofstream(fname.c_str()) << name_demangled << " [" << dispatch_id << "]: " << kernel_name_c << '\n';
// iterate over each shader engine att trace
for (int i = 0; i < se_num; i++) {