Updated engine_activity api
Signed-off-by: Maisam Arif <maisarif@amd.com> Change-Id: I3f62e093fdc0254015c0837dca59763551d3659c
Αυτή η υποβολή περιλαμβάνεται σε:
υποβλήθηκε από
Maisam Arif
γονέας
34bd26c68e
υποβολή
0550c9352c
@@ -598,7 +598,7 @@ Input parameters:
|
||||
|
||||
* `processor_handle` device which to query
|
||||
|
||||
Output: Dictionary with fields
|
||||
Output: Dictionary of activites to their respective usage percentage or 'N/A' if not supported
|
||||
|
||||
Field | Description
|
||||
---|---
|
||||
|
||||
@@ -1697,12 +1697,18 @@ def amdsmi_get_gpu_activity(
|
||||
)
|
||||
)
|
||||
|
||||
return {
|
||||
activity_dict = {
|
||||
"gfx_activity": engine_usage.gfx_activity,
|
||||
"umc_activity": engine_usage.umc_activity,
|
||||
"mm_activity": engine_usage.mm_activity,
|
||||
}
|
||||
|
||||
for key, value in activity_dict.items():
|
||||
if value == 0xFFFF:
|
||||
activity_dict[key] = "N/A"
|
||||
|
||||
return activity_dict
|
||||
|
||||
|
||||
def amdsmi_get_clock_info(
|
||||
processor_handle: amdsmi_wrapper.amdsmi_processor_handle,
|
||||
|
||||
Αναφορά σε νέο ζήτημα
Block a user