From d356da056d90a413d989aa833e9478b04bbd4d25 Mon Sep 17 00:00:00 2001 From: Divya Shikre Date: Tue, 11 May 2021 11:41:37 -0400 Subject: [PATCH] Add fix to show usage of setperfdeterminism functionality in --help command Signed-off-by: Divya Shikre Change-Id: Ife93c887eea2a9aae69f2923dba45c7cde4838d3 [ROCm/amdsmi commit: 686e6ac65402fcf3606f1a5972d4eae614b817f6] --- projects/amdsmi/python_smi_tools/rocm_smi.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/projects/amdsmi/python_smi_tools/rocm_smi.py b/projects/amdsmi/python_smi_tools/rocm_smi.py index c96d998f85..4df63c24b5 100755 --- a/projects/amdsmi/python_smi_tools/rocm_smi.py +++ b/projects/amdsmi/python_smi_tools/rocm_smi.py @@ -946,7 +946,7 @@ def setPerfDeterminism(deviceList, clkvalue): if rsmi_ret_ok(ret, device): printLog(device, 'Successfully enabled performance determinism and set GFX clock frequency', str(clkvalue)) else: - printErrLog(device, 'Unable to set performance determinism and clock frequency', str(clkvalue)) + printErrLog(device, 'Unable to set performance determinism and clock frequency to %s' % (str(clkvalue))) RETCODE = 1 @@ -2770,7 +2770,7 @@ if __name__ == '__main__': help='Specify Power Profile level (#) or a quoted string of CUSTOM Profile attributes "# ' '# # #..." (requires manual Perf level)') groupAction.add_argument('--setperfdeterminism', help='Set clock frequency limit to get minimal performance variation', - type=int, metavar='LEVEL', nargs='+') + type=int, metavar='SCLK', nargs=1) groupAction.add_argument('--rasenable', help='Enable RAS for specified block and error type', type=str, nargs=2, metavar=('BLOCK', 'ERRTYPE')) groupAction.add_argument('--rasdisable', help='Disable RAS for specified block and error type', type=str, nargs=2,