SWDEV-457755 - Add TS only for kernel packets in the Accumulate command
Change-Id: I1b2f01c5763761808f49802fa117abc6306a22aa
This commit is contained in:
committed by
Maneesh Gupta
parent
e705e5e0d9
commit
3d540ec113
@@ -103,12 +103,16 @@ void ReportActivity(const amd::Command& command) {
|
||||
|
||||
if (command.type() == CL_COMMAND_TASK) {
|
||||
auto timestamps = static_cast<const amd::AccumulateCommand&>(command).getTimestamps();
|
||||
std::vector<std::string> kernel_names =
|
||||
static_cast<const amd::AccumulateCommand&>(command).getKernelNames();
|
||||
for (uint32_t i = 0; i < timestamps.size(); i++) {
|
||||
auto it = timestamps[i];
|
||||
record.begin_ns = it.first;
|
||||
record.end_ns = it.second;
|
||||
record.kernel_name =
|
||||
static_cast<const amd::AccumulateCommand&>(command).getKernelNames()[i].c_str();
|
||||
if (kernel_names[i].empty()) {
|
||||
LogError("kernel name cannot be empty");
|
||||
}
|
||||
record.kernel_name = kernel_names[i].c_str();
|
||||
function(ACTIVITY_DOMAIN_HIP_OPS, operation_id, &record);
|
||||
}
|
||||
} else {
|
||||
|
||||
Reference in New Issue
Block a user