Fixed log handling and exceptions
Updated exceptions Added driver load exception Fixed logging override by removing previous log handlers Updated debug output to use gpu_id vs C-pointer Removed AmdSmiRetcode class in favor of using the wrapper directly Added traceback limits for clean errors (Not in debug) Change-Id: Ia02bb842b8f60d9ab4b68b7f8b1afda30b1c021c Signed-off-by: Maisam Arif <maisarif@amd.com>
Этот коммит содержится в:
@@ -60,7 +60,7 @@ try:
|
||||
print("No GPUs on machine")
|
||||
except AmdSmiException as e:
|
||||
print("Error code: {}".format(e.err_code))
|
||||
if e.err_code == AmdSmiRetCode.STATUS_RETRY:
|
||||
if e.err_code == amdsmi_wrapper.AMDSMI_STATUS_RETRY:
|
||||
print("Error info: {}".format(e.err_info))
|
||||
```
|
||||
|
||||
|
||||
Ссылка в новой задаче
Block a user