From 33320d6e1a4ac833b9cb746621005509ecddadd3 Mon Sep 17 00:00:00 2001 From: Elena Sakhnovitch Date: Fri, 29 Apr 2022 16:41:06 -0400 Subject: [PATCH] [rocm_smi.py] Hide unsupported clocks under debug Signed-off-by: Elena Sakhnovitch Change-Id: I1f2c7b93d9a81f2735c76e8d441f9e298288f5c0 [ROCm/rocm_smi_lib commit: 9d7fd34d2b721aca28a0fdb568bc97f120d827c4] --- projects/rocm-smi-lib/python_smi_tools/rocm_smi.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/projects/rocm-smi-lib/python_smi_tools/rocm_smi.py b/projects/rocm-smi-lib/python_smi_tools/rocm_smi.py index 0271e40ea0..48821adc29 100755 --- a/projects/rocm-smi-lib/python_smi_tools/rocm_smi.py +++ b/projects/rocm-smi-lib/python_smi_tools/rocm_smi.py @@ -1417,7 +1417,7 @@ def showClocks(deviceList): printLog(device, str(x), str(fr)) printLog(device, '', None) else: - printErrLog(device, '%s frequency is unsupported' % (clk_type)) + logging.debug('{} frequency is unsupported on device[{}]'.format(clk_type, device)) printLog(device, '', None) if rocmsmi.rsmi_dev_pci_bandwidth_get(device, None) == 1: ret = rocmsmi.rsmi_dev_pci_bandwidth_get(device, byref(bw)) @@ -1432,7 +1432,7 @@ def showClocks(deviceList): printLog(device, str(x), str(fr)) printLog(device, '', None) else: - printErrLog(device, 'PCIe frequency is unsupported') + logging.debug('PCIe frequency is unsupported on device [{}]'.format(device)) printLog(device, '', None) printLogSpacer(None, '-') # divider between devices for better visibility printLogSpacer() @@ -1481,7 +1481,7 @@ def showCurrentClocks(deviceList, clk_defined=None, concise=False): else: printLog(device, '%s clock level: %s' % (clk_type, levl), '(%sMhz)' % (str(fr)[:-2])) else: - printErrLog(device, '%s clock is unsupported' % (clk_type)) + logging.debug('{} clock is unsupported on device[{}]'.format(clk_type, device)) # pcie clocks if rocmsmi.rsmi_dev_pci_bandwidth_get(device, None) == 1: ret = rocmsmi.rsmi_dev_pci_bandwidth_get(device, byref(bw)) @@ -1491,7 +1491,7 @@ def showCurrentClocks(deviceList, clk_defined=None, concise=False): bw.lanes[current_f]) printLog(device, 'pcie clock level', '{} ({})'.format(current_f, fr)) else: - printErrLog(device, 'PCIe clock is unsupported') + logging.debug('PCIe clock is unsupported on device[{}]'.format(device)) printLogSpacer()