From 7b176fc2dfe24f059b5fac44659749fccc384948 Mon Sep 17 00:00:00 2001 From: Dalibor Stanisavljevic Date: Fri, 24 Feb 2023 14:43:20 +0100 Subject: [PATCH] SWDEV-380736 - Adjusted ouput for amdsmi_get_vram_usage Change-Id: I6a2cd2353a0c3fafc3a3690098a1e279ecd30378 Signed-off-by: Dalibor Stanisavljevic --- py-interface/README.md | 2 +- py-interface/amdsmi_interface.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/py-interface/README.md b/py-interface/README.md index e02eb3b1a1..36b49114f7 100644 --- a/py-interface/README.md +++ b/py-interface/README.md @@ -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` diff --git a/py-interface/amdsmi_interface.py b/py-interface/amdsmi_interface.py index 91b26510c5..c48aedf752 100644 --- a/py-interface/amdsmi_interface.py +++ b/py-interface/amdsmi_interface.py @@ -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(