diff --git a/python_smi_tools/README.md b/python_smi_tools/README.md index e2d86311b2..1fa33eba11 100644 --- a/python_smi_tools/README.md +++ b/python_smi_tools/README.md @@ -175,13 +175,13 @@ Set options: --rasenable BLOCK ERRTYPE Enable RAS for specified block and error type --rasdisable BLOCK ERRTYPE Disable RAS for specified block and error type --rasinject BLOCK Inject RAS poison for specified block (ONLY WORKS ON - UNSECURE BOARDS) + UNSECURED BOARDS) Reset options: -r, --resetclocks Reset clocks and OverDrive to default --resetfans Reset fans to automatic (driver) control --resetprofile Reset Power Profile back to default - --resetpoweroverdrive Set the maximum GPU power back to the device deafult + --resetpoweroverdrive Set the maximum GPU power back to the device default state --resetxgmierr Reset XGMI error count --resetperfdeterminism Disable performance determinism diff --git a/python_smi_tools/rocm_smi.py b/python_smi_tools/rocm_smi.py index ae6435debe..d804f7d054 100755 --- a/python_smi_tools/rocm_smi.py +++ b/python_smi_tools/rocm_smi.py @@ -2982,7 +2982,7 @@ def showEvents(deviceList, eventTypes): if len(eventTypeList) == 0: eventTypeList = notification_type_names print2DArray([['DEVICE\t', 'TIME\t', 'TYPE\t', 'DESCRIPTION']]) - # Create a seperate thread for each GPU + # Create a separate thread for each GPU for device in deviceList: try: _thread.start_new_thread(printEventList, (device, 1000, eventTypeList)) @@ -3683,7 +3683,7 @@ def rsmi_ret_ok(my_ret, device=None, metric=None, silent=False): :param device: DRM device identifier :param my_ret: Return of RSMI call (rocm_smi_lib API) :param metric: Parameter of GPU currently being analyzed - :param silent: Echo verbose error reponse. + :param silent: Echo verbose error response. True silences err output, False does not silence err output (default). """ global RETCODE @@ -3869,7 +3869,7 @@ if __name__ == '__main__': groupActionReset.add_argument('--resetfans', help='Reset fans to automatic (driver) control', action='store_true') groupActionReset.add_argument('--resetprofile', help='Reset Power Profile back to default', action='store_true') groupActionReset.add_argument('--resetpoweroverdrive', - help='Set the maximum GPU power back to the device deafult state', + help='Set the maximum GPU power back to the device default state', action='store_true') groupActionReset.add_argument('--resetxgmierr', help='Reset XGMI error count', action='store_true') groupActionReset.add_argument('--resetperfdeterminism', help='Disable performance determinism', action='store_true') @@ -3921,7 +3921,7 @@ if __name__ == '__main__': groupAction.add_argument('--rasdisable', help='Disable RAS for specified block and error type', type=str, nargs=2, metavar=('BLOCK', 'ERRTYPE')) groupAction.add_argument('--rasinject', - help='Inject RAS poison for specified block (ONLY WORKS ON UNSECURE BOARDS)', type=str, + help='Inject RAS poison for specified block (ONLY WORKS ON UNSECURED BOARDS)', type=str, metavar='BLOCK', nargs=1) groupActionGpuReset.add_argument('--gpureset', help='Reset specified GPU (One GPU must be specified)', action='store_true') diff --git a/python_smi_tools/rsmiBindings.py b/python_smi_tools/rsmiBindings.py index 6a55370c0a..0483dacf59 100644 --- a/python_smi_tools/rsmiBindings.py +++ b/python_smi_tools/rsmiBindings.py @@ -67,11 +67,11 @@ rsmi_status_verbose_err_out = { rsmi_status_t.RSMI_STATUS_OUT_OF_RESOURCES: 'Unable to acquire memory or other resource', rsmi_status_t.RSMI_STATUS_INTERNAL_EXCEPTION: 'An internal exception was caught', rsmi_status_t.RSMI_STATUS_INPUT_OUT_OF_BOUNDS: 'Provided input is out of allowable or safe range', - rsmi_status_t.RSMI_INITIALIZATION_ERROR: 'Error occured during rsmi initialization', + rsmi_status_t.RSMI_INITIALIZATION_ERROR: 'Error occurred during rsmi initialization', rsmi_status_t.RSMI_STATUS_NOT_YET_IMPLEMENTED: 'Requested function is not implemented on this setup', rsmi_status_t.RSMI_STATUS_NOT_FOUND: 'Item searched for but not found', rsmi_status_t.RSMI_STATUS_INSUFFICIENT_SIZE: 'Insufficient resources available', - rsmi_status_t.RSMI_STATUS_INTERRUPT: 'Interrupt occured during execution', + rsmi_status_t.RSMI_STATUS_INTERRUPT: 'Interrupt occurred during execution', rsmi_status_t.RSMI_STATUS_UNEXPECTED_SIZE: 'Unexpected amount of data read', rsmi_status_t.RSMI_STATUS_NO_DATA: 'No data found for the given input', rsmi_status_t.RSMI_STATUS_UNEXPECTED_DATA: 'Unexpected data received', @@ -639,4 +639,4 @@ rsmi_power_type_dict = { 0: 'AVERAGE', 1: 'CURRENT SOCKET', 0xFFFFFFFF: 'INVALID_POWER_TYPE' -} \ No newline at end of file +} diff --git a/python_smi_tools/rsmiBindings.py.in b/python_smi_tools/rsmiBindings.py.in index d6ff405f0c..d53010f4df 100644 --- a/python_smi_tools/rsmiBindings.py.in +++ b/python_smi_tools/rsmiBindings.py.in @@ -99,11 +99,11 @@ rsmi_status_verbose_err_out = { rsmi_status_t.RSMI_STATUS_OUT_OF_RESOURCES: 'Unable to acquire memory or other resource', rsmi_status_t.RSMI_STATUS_INTERNAL_EXCEPTION: 'An internal exception was caught', rsmi_status_t.RSMI_STATUS_INPUT_OUT_OF_BOUNDS: 'Provided input is out of allowable or safe range', - rsmi_status_t.RSMI_INITIALIZATION_ERROR: 'Error occured during rsmi initialization', + rsmi_status_t.RSMI_INITIALIZATION_ERROR: 'Error occurred during rsmi initialization', rsmi_status_t.RSMI_STATUS_NOT_YET_IMPLEMENTED: 'Requested function is not implemented on this setup', rsmi_status_t.RSMI_STATUS_NOT_FOUND: 'Item searched for but not found', rsmi_status_t.RSMI_STATUS_INSUFFICIENT_SIZE: 'Insufficient resources available', - rsmi_status_t.RSMI_STATUS_INTERRUPT: 'Interrupt occured during execution', + rsmi_status_t.RSMI_STATUS_INTERRUPT: 'Interrupt occurred during execution', rsmi_status_t.RSMI_STATUS_UNEXPECTED_SIZE: 'Unexpected amount of data read', rsmi_status_t.RSMI_STATUS_NO_DATA: 'No data found for the given input', rsmi_status_t.RSMI_STATUS_UNEXPECTED_DATA: 'Unexpected data received', @@ -671,4 +671,4 @@ rsmi_power_type_dict = { 0: 'AVERAGE', 1: 'CURRENT SOCKET', 0xFFFFFFFF: 'INVALID_POWER_TYPE' -} \ No newline at end of file +}