Merge amd-staging into amd-master 20221103
Signed-off-by: Hao Zhou <Hao.Zhou@amd.com> Change-Id: I13896298d0d4dbdb079ce4cd1372d7a61cd5df6c
Этот коммит содержится в:
@@ -484,6 +484,7 @@ int GetProcessInfoForPID(uint32_t pid, rsmi_process_info_t *proc,
|
|||||||
cu_occupancy_path += "/stats_";
|
cu_occupancy_path += "/stats_";
|
||||||
cu_occupancy_path += std::to_string(gpu_id);
|
cu_occupancy_path += std::to_string(gpu_id);
|
||||||
cu_occupancy_path += "/cu_occupancy";
|
cu_occupancy_path += "/cu_occupancy";
|
||||||
|
|
||||||
err = ReadSysfsStr(cu_occupancy_path, &tmp);
|
err = ReadSysfsStr(cu_occupancy_path, &tmp);
|
||||||
if (err == 0) {
|
if (err == 0) {
|
||||||
if (!is_number(tmp)) {
|
if (!is_number(tmp)) {
|
||||||
@@ -494,6 +495,8 @@ int GetProcessInfoForPID(uint32_t pid, rsmi_process_info_t *proc,
|
|||||||
|
|
||||||
// Collect count of compute units
|
// Collect count of compute units
|
||||||
cu_count += kfd_node_map[gpu_id]->cu_count();
|
cu_count += kfd_node_map[gpu_id]->cu_count();
|
||||||
|
} else {
|
||||||
|
return err;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Ссылка в новой задаче
Block a user