Merge amd-staging into amd-master 20230925
Signed-off-by: Hao Zhou <Hao.Zhou@amd.com>
Change-Id: Id510a95e3bea2ddddae7c417071bde599569930a
[ROCm/rocm_smi_lib commit: d417ea52f6]
Этот коммит содержится в:
@@ -2179,6 +2179,7 @@ def showMemUse(deviceList):
|
||||
@param deviceList: List of DRM devices (can be a single-item list)
|
||||
"""
|
||||
memoryUse = c_uint64()
|
||||
avgMemBandwidth = c_uint16()
|
||||
printLogSpacer(' Current Memory Use ')
|
||||
for device in deviceList:
|
||||
ret = rocmsmi.rsmi_dev_memory_busy_percent_get(device, byref(memoryUse))
|
||||
@@ -2190,6 +2191,12 @@ def showMemUse(deviceList):
|
||||
printLog(device, utilization_counter_name[ut_counter.type], ut_counter.val)
|
||||
else:
|
||||
printLog(device, 'Memory Activity', 'N/A')
|
||||
|
||||
ret = rocmsmi.rsmi_dev_activity_avg_mm_get(device, byref(avgMemBandwidth))
|
||||
if rsmi_ret_ok(ret, device, silent=True):
|
||||
printLog(device, 'Avg. Memory Bandwidth', avgMemBandwidth.value)
|
||||
else:
|
||||
printLog(device, 'Not supported on the given system', None)
|
||||
printLogSpacer()
|
||||
|
||||
|
||||
|
||||
Ссылка в новой задаче
Block a user