[SWDEV-488303] Updated CU occupancy for per-process retrieval (#243)
Change-Id: I2990597c6dd4b2e8cf3e11ce60f72049ebdd9a8c
Signed-off-by: Maisam Arif <Maisam.Arif@amd.com>
[ROCm/amdsmi commit: 0fdaebdbaa]
This commit is contained in:
zatwierdzone przez
GitHub
rodzic
418ec78c21
commit
465f2e6a41
@@ -2691,6 +2691,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
|
||||
})
|
||||
|
||||
return result
|
||||
|
||||
@@ -1289,7 +1289,8 @@ struct_amdsmi_proc_info_t._fields_ = [
|
||||
('engine_usage', struct_engine_usage_),
|
||||
('memory_usage', struct_memory_usage_),
|
||||
('container_name', ctypes.c_char * 256),
|
||||
('reserved', ctypes.c_uint32 * 12),
|
||||
('cu_occupancy', ctypes.c_uint32),
|
||||
('PADDING_1', ctypes.c_ubyte * 4),
|
||||
]
|
||||
|
||||
amdsmi_proc_info_t = struct_amdsmi_proc_info_t
|
||||
|
||||
Reference in New Issue
Block a user