From 4b1fb2336dd8c258a08c4941eeccd4b0c24896ec Mon Sep 17 00:00:00 2001 From: "Bill(Shuzhou) Liu" Date: Wed, 8 Feb 2023 09:10:17 -0600 Subject: [PATCH] rocm-smi --showxgmierr return error instead of error counter values The rocm-smi pass wrong arguments Change-Id: I3a3923abdd263d4af87f3ec90670bb16afa2ef9b [ROCm/amdsmi commit: ae10e842afb62528501343fd3949e872a502180e] --- projects/amdsmi/python_smi_tools/rocm_smi.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/projects/amdsmi/python_smi_tools/rocm_smi.py b/projects/amdsmi/python_smi_tools/rocm_smi.py index 5e6d2f2cdf..e237c9da60 100755 --- a/projects/amdsmi/python_smi_tools/rocm_smi.py +++ b/projects/amdsmi/python_smi_tools/rocm_smi.py @@ -2476,7 +2476,7 @@ def showXgmiErr(deviceList): printLogSpacer('XGMI Error status') xe = rsmi_xgmi_status_t() for device in deviceList: - ret = rocmsmi.rsmi_dev_xgmi_error_status(device, xe) + ret = rocmsmi.rsmi_dev_xgmi_error_status(device, byref(xe)) if rsmi_ret_ok(ret, device, 'xgmi status'): desc = '' if xe.value is None: