SWDEV-380736 - Adjusted ouput for amdsmi_get_vram_usage

Change-Id: I6a2cd2353a0c3fafc3a3690098a1e279ecd30378
Signed-off-by: Dalibor Stanisavljevic <Dalibor.Stanisavljevic@amd.com>


[ROCm/amdsmi commit: 7b176fc2df]
This commit is contained in:
Dalibor Stanisavljevic
2023-02-24 14:43:20 +01:00
parent 839c93fa14
commit 08e3cdccf4
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -551,8 +551,8 @@ Output: Dictionary with fields
Field | Description
---|---
`vram_used`| VRAM currently in use
`vram_total` | VRAM total
`vram_used`| VRAM currently in use
Exceptions that can be thrown by `amdsmi_get_vram_usage` function:
* `AmdSmiLibraryException`
@@ -1027,7 +1027,7 @@ def amdsmi_get_vram_usage(
device_handle, ctypes.byref(vram_info))
)
return {"vram_used": vram_info.vram_used, "vram_total": vram_info.vram_total}
return {"vram_total": vram_info.vram_total, "vram_used": vram_info.vram_used}
def amdsmi_get_pcie_link_status(