Fix typos in rocm_smi.py, README.md, rsmiBindings.py

Change-Id: Ib03cec6130983a56657a388799fc2afaf3b8f728
Signed-off-by: Galantsev, Dmitrii <dmitrii.galantsev@amd.com>
このコミットが含まれているのは:
Junyi Hou
2024-03-15 06:53:27 +00:00
committed by Dmitrii Galantsev
コミット 9e2a6ea4bf
4個のファイルの変更12行の追加12行の削除
+2 -2
ファイルの表示
@@ -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
+4 -4
ファイルの表示
@@ -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')
+3 -3
ファイルの表示
@@ -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'
}
}
+3 -3
ファイルの表示
@@ -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'
}
}