MI300 counters support for rocprof and rocprofv2(Accumulation from all xccs)

1. Xml files updated for gfx940 counters
2. File plugin changes to allow rocprofv2 backward compatibility for results.csv
3. Changes in rocprofv2 script to use tblextr.py, to generate results.csv just like rocprof

Change-Id: I7798f4411ce01f6fbfffb126de654ed806ca7045
(cherry picked from commit 86cbaf38c436be876f0426fa27803b1e64d90378)


[ROCm/rocprofiler commit: 8f82ff6a46]
This commit is contained in:
Saurabh Verma
2023-04-20 20:23:41 -05:00
کامیت شده توسط Ammar ELWazir
والد c61b174908
کامیت dcd5f1a397
8فایلهای تغییر یافته به همراه503 افزوده شده و 46 حذف شده
@@ -286,10 +286,10 @@ class file_plugin_t {
profiler_record->kernel_id, &kernel_name_c));
}
*output_file << std::string("dispatch[") << std::to_string(profiler_record->header.id.handle)
<< "], " << std::string("gpu_id(")
<< "], " << std::string("gpu-id(")
<< std::to_string(profiler_record->gpu_id.handle) << "), "
<< std::string("queue_id(") << std::to_string(profiler_record->queue_id.handle)
<< "), " << std::string("queue_index(")
<< std::string("queue-id(") << std::to_string(profiler_record->queue_id.handle)
<< "), " << std::string("queue-index(")
<< std::to_string(profiler_record->queue_idx.value) << "), " << std::string("pid(")
<< std::to_string(GetPid()) << "), " << std::string("tid(")
<< std::to_string(profiler_record->thread_id.value) << ")";
@@ -321,9 +321,9 @@ class file_plugin_t {
<< std::to_string(profiler_record->kernel_id.handle) << "), "
<< std::string("kernel-name(\"") << kernel_name << "\")"
<< std::string(", start_time(")
<< std::to_string(profiler_record->timestamps.begin.value) << ")"
<< std::string(", end_time(")
<< std::to_string(profiler_record->timestamps.end.value) << ")";
<< std::string(", time(0,")
<< std::to_string(profiler_record->timestamps.begin.value) << ","
<< std::to_string(profiler_record->timestamps.end.value) << ",0)";
// For Counters
*output_file << std::endl;
@@ -339,7 +339,7 @@ class file_plugin_t {
CHECK_ROCPROFILER(rocprofiler_query_counter_info(
session_id, ROCPROFILER_COUNTER_NAME, profiler_record->counters[i].counter_handler,
&name_c));
*output_file << ", " << name_c << " ("
*output_file << " " << name_c << " ("
<< std::to_string(profiler_record->counters[i].value.value) << ")"
<< std::endl;
}