Handle GPU Not detected
Signed-off-by: Maisam Arif <Maisam.Arif@amd.com>
Change-Id: I988b0dddde23b83c1a8e402233b6aa08ce55d0c7
[ROCm/amdsmi commit: 9bfebc6f1c]
Этот коммит содержится в:
@@ -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 = ''
|
||||
|
||||
|
||||
|
||||
@@ -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
|
||||
|
||||
|
||||
Ссылка в новой задаче
Block a user