[SWDEV-537062] Fixed CU Occupancy reporting UINT MAX
Signed-off-by: Maisam Arif <Maisam.Arif@amd.com> Change-Id: I975579997a9e455eb930f6c0b8fc5f3dc3cbfae4
이 커밋은 다음에 포함됨:
@@ -5773,7 +5773,7 @@ class AMDSMICommands():
|
||||
if 'cu_occupancy' in process_info:
|
||||
try:
|
||||
cu_occupancy = process_info['cu_occupancy']
|
||||
if num_compute_units != "N/A" and num_compute_units > 0:
|
||||
if num_compute_units != "N/A" and num_compute_units > 0 and cu_occupancy != "N/A":
|
||||
cu_percentage = round((cu_occupancy / num_compute_units) * 100, 1)
|
||||
process_info['cu_occupancy'] = self.helpers.unit_format(self.logger,
|
||||
cu_percentage,
|
||||
|
||||
@@ -2690,7 +2690,7 @@ def amdsmi_get_gpu_process_list(
|
||||
"cpu_mem": process_list[index].memory_usage.cpu_mem,
|
||||
"vram_mem": process_list[index].memory_usage.vram_mem,
|
||||
},
|
||||
"cu_occupancy": process_list[index].cu_occupancy
|
||||
"cu_occupancy": _validate_if_max_uint(process_list[index].cu_occupancy, MaxUIntegerTypes.UINT32_T)
|
||||
})
|
||||
|
||||
return result
|
||||
|
||||
새 이슈에서 참조
사용자 차단