Unable to reset GPU from CLI
The CLI helper compares the hex vendor id string with the number and never match it as AMD GPU. Change-Id: I1ababdce3a3694a5e26e5b0feef4d3d8cd40df7a
Этот коммит содержится в:
коммит произвёл
Shuzhou Liu
родитель
108e6d4ae6
Коммит
b2690fdf1e
@@ -617,8 +617,11 @@ class AMDSMIHelpers():
|
||||
"""
|
||||
# Get card vendor id
|
||||
asic_info = amdsmi_interface.amdsmi_get_gpu_asic_info(device_handle)
|
||||
return asic_info['vendor_id'] == AMD_VENDOR_ID
|
||||
|
||||
try:
|
||||
vendor_value = int(asic_info['vendor_id'], 16)
|
||||
return vendor_value == AMD_VENDOR_ID
|
||||
except:
|
||||
return False
|
||||
|
||||
def get_perf_levels(self):
|
||||
perf_levels_str = [clock.name for clock in amdsmi_interface.AmdSmiDevPerfLevel]
|
||||
|
||||
Ссылка в новой задаче
Block a user