From 2247c4b46c7bc1f8cdf2d109d25a7c242c308a9d Mon Sep 17 00:00:00 2001 From: "Bill(Shuzhou) Liu" Date: Fri, 22 Sep 2023 15:38:23 -0500 Subject: [PATCH] Change the python tool id output label Change the label from GPU to Device as we call rsmi_dev_id_get(). Change-Id: I8ffe3673d434e5291ebd5cc909afb7d18154ecb6 --- python_smi_tools/README.md | 2 +- python_smi_tools/rocm_smi.py | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/python_smi_tools/README.md b/python_smi_tools/README.md index e33e093548..5c65f21f4c 100644 --- a/python_smi_tools/README.md +++ b/python_smi_tools/README.md @@ -69,7 +69,7 @@ Display Options: -a, --showallinfo Show Temperature, Fan and Clock values Topology: - -i, --showid Show GPU ID + -i, --showid Show DEVICE ID -v, --showvbios Show VBIOS version --showdriverversion Show kernel driver version --showfwinfo [BLOCK [BLOCK ...]] Show FW information diff --git a/python_smi_tools/rocm_smi.py b/python_smi_tools/rocm_smi.py index 568484899b..cc9bc1f695 100755 --- a/python_smi_tools/rocm_smi.py +++ b/python_smi_tools/rocm_smi.py @@ -2108,8 +2108,8 @@ def showId(deviceList): """ printLogSpacer(' ID ') for device in deviceList: - printLog(device, 'GPU ID', getId(device)) - printLog(device, 'GPU Rev', getRev(device)) + printLog(device, 'Device ID', getId(device)) + printLog(device, 'Device Rev', getRev(device)) printLogSpacer() @@ -3545,7 +3545,7 @@ if __name__ == '__main__': groupDisplayOpt.add_argument('--showhw', help='Show Hardware details', action='store_true') groupDisplayOpt.add_argument('-a', '--showallinfo', help='Show Temperature, Fan and Clock values', action='store_true') - groupDisplayTop.add_argument('-i', '--showid', help='Show GPU ID', action='store_true') + groupDisplayTop.add_argument('-i', '--showid', help='Show DEVICE ID', action='store_true') groupDisplayTop.add_argument('-v', '--showvbios', help='Show VBIOS version', action='store_true') groupDisplayTop.add_argument('-e', '--showevents', help='Show event list', metavar='EVENT', type=str, nargs='*') groupDisplayTop.add_argument('--showdriverversion', help='Show kernel driver version', action='store_true')