[SWDEV-495985] Changed ACCELERATOR_TYPE default value.
Default value changed from 0 to "N/A".
Actual values for all fields will be filled out in later API
update.
Signed-off-by: gabrpham <Gabriel.Pham@amd.com>
Change-Id: I69b08fff894a032ef79301754807ed4b5c85257f
[ROCm/amdsmi commit: 27996aef18]
Этот коммит содержится в:
коммит произвёл
Gabriel Pham
родитель
17f7c7c2e8
Коммит
f162de9efd
@@ -5239,6 +5239,9 @@ class AMDSMICommands():
|
||||
current_mem_cap = "N/A"
|
||||
logging.debug("Failed to get current memory partition capabilties for GPU %s | %s", gpu_id, e.get_error_info())
|
||||
|
||||
if profile_type == 0:
|
||||
profile_type = "N/A"
|
||||
|
||||
tabular_output_dict = {"gpu_id": gpu_id,
|
||||
"memory": current_mem_cap,
|
||||
"accelerator_type": profile_type,
|
||||
@@ -5298,6 +5301,7 @@ class AMDSMICommands():
|
||||
self.logger.store_multiple_device_output()
|
||||
self.logger.print_output(multiple_device_enabled=True)
|
||||
self.logger.clear_multiple_devices_ouput()
|
||||
|
||||
if args.accelerator:
|
||||
self.logger.table_header = ''.rjust(7)
|
||||
current_header = "GPU_ID".ljust(13) + \
|
||||
@@ -5361,6 +5365,9 @@ class AMDSMICommands():
|
||||
mem_caps_str = "N/A"
|
||||
logging.debug("Failed to get accelerator partition profile for GPU %s | %s", gpu_id, e.get_error_info())
|
||||
|
||||
if profile_type == 0:
|
||||
profile_type = "N/A"
|
||||
|
||||
tabular_output_dict = {"gpu_id": gpu_id,
|
||||
"profile_index": profile_index,
|
||||
"memory_partition_caps": mem_caps_str,
|
||||
|
||||
Ссылка в новой задаче
Block a user