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>
Этот коммит содержится в:
Maisam Arif
2023-09-24 16:12:30 -05:00
родитель db3e119f7d
Коммит 9281bfbbfa
8 изменённых файлов: 188 добавлений и 157 удалений
+1 -1
Просмотреть файл
@@ -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))
```