Signed-off-by: Maisam Arif <Maisam.Arif@amd.com>
Change-Id: I988b0dddde23b83c1a8e402233b6aa08ce55d0c7


[ROCm/amdsmi commit: 9bfebc6f1c]
Этот коммит содержится в:
Maisam Arif
2023-11-02 20:54:03 -05:00
родитель 1128c1f246
Коммит 11b1e5fb42
2 изменённых файлов: 9 добавлений и 0 удалений
+5
Просмотреть файл
@@ -50,6 +50,11 @@ class AMDSMICommands():
sys.exit(-1)
else:
raise e
if len(self.device_handles) == 0:
logging.error('Unable to detect any devices, check if driver is initialized (amdgpu not found in modules)')
sys.exit(-1)
self.stop = ''
+4
Просмотреть файл
@@ -154,6 +154,10 @@ class AMDSMIHelpers():
else:
raise e
if len(device_handles) == 0:
logging.error('Unable to find any devices, check if driver is initialized (amdgpu not found in modules)')
sys.exit(-1)
# Handle spacing for the gpu_choices_str
max_padding = int(math.log10(len(device_handles))) + 1