From 40eed25a3bbf79d2650410ca037f52ca8eae3cd4 Mon Sep 17 00:00:00 2001 From: Ori Messinger Date: Wed, 3 Nov 2021 04:45:47 -0400 Subject: [PATCH] ROCm SMI CLI: Fix printErrLog Arguments This patch removes every erroneous occurance of a third argument when calling printErrLog(device, err), since it takes two arguments. Signed-off-by: Ori Messinger Change-Id: I5971cc68b69c86f37c69f44e4785dabfc82c7955 --- python_smi_tools/rocm_smi.py | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/python_smi_tools/rocm_smi.py b/python_smi_tools/rocm_smi.py index c56338ec24..674e249ebf 100755 --- a/python_smi_tools/rocm_smi.py +++ b/python_smi_tools/rocm_smi.py @@ -2295,7 +2295,7 @@ def showAccessibleTopology(deviceList): if rsmi_ret_ok(ret): gpu_links_type[srcdevice][destdevice] = accessible.value else: - printErrLog(srcdevice, 'Cannot read link accessibility: Unsupported on this machine', None) + printErrLog(srcdevice, 'Cannot read link accessibility: Unsupported on this machine') if PRINT_JSON: formatMatrixToJSON(deviceList, gpu_links_type, "(Topology) Link accessibility between DRM devices {} and {}") return @@ -2334,7 +2334,7 @@ def showWeightTopology(deviceList): if rsmi_ret_ok(ret): gpu_links_weight[srcdevice][destdevice] = weight else: - printErrLog(srcdevice, 'Cannot read Link Weight: Not supported on this machine', None) + printErrLog(srcdevice, 'Cannot read Link Weight: Not supported on this machine') if PRINT_JSON: formatMatrixToJSON(deviceList, gpu_links_weight, "(Topology) Weight between DRM devices {} and {}") @@ -2377,7 +2377,7 @@ def showHopsTopology(deviceList): if rsmi_ret_ok(ret): gpu_links_hops[srcdevice][destdevice] = hops else: - printErrLog(srcdevice, 'Cannot read Link Hops: Not supported on this machine', None) + printErrLog(srcdevice, 'Cannot read Link Hops: Not supported on this machine') if PRINT_JSON: formatMatrixToJSON(deviceList, gpu_links_hops, "(Topology) Hops between DRM devices {} and {}") @@ -2425,7 +2425,7 @@ def showTypeTopology(deviceList): else: gpu_links_type[srcdevice][destdevice] = "XXXX" else: - printErrLog(srcdevice, 'Cannot read Link Type: Not supported on this machine', None) + printErrLog(srcdevice, 'Cannot read Link Type: Not supported on this machine') if PRINT_JSON: formatMatrixToJSON(deviceList, gpu_links_type, "(Topology) Link type between DRM devices {} and {}") return @@ -2466,7 +2466,7 @@ def showNumaTopology(deviceList): if rsmi_ret_ok(ret): printLog(device, "(Topology) Numa Affinity", numa_numbers.value) else: - printErrLog(device, 'Cannot read Numa Affinity', None) + printErrLog(device, 'Cannot read Numa Affinity') def showHwTopology(deviceList):