Support max_num_cu_shared and num_cache_instance
Add above fields for cache info. Remove driver_date in CLI and Remove the disable properties of cache. Change-Id: I80672490908d9e32a149076cc37459fa56b8b0bf
This commit is contained in:
committed by
Shuzhou Liu
parent
e9a6153836
commit
59b510de2b
@@ -439,7 +439,6 @@ LIMIT:
|
||||
DRIVER:
|
||||
DRIVER_NAME: amdgpu
|
||||
DRIVER_VERSION: 6.1.10
|
||||
DRIVER_DATE: 2015/01/01 00:00
|
||||
VRAM:
|
||||
VRAM_TYPE: GDDR6
|
||||
VRAM_VENDOR: SAMSUNG
|
||||
@@ -448,6 +447,8 @@ CACHE:
|
||||
CACHE 0:
|
||||
CACHE_SIZE: 16 KB
|
||||
CACHE_LEVEL: 1
|
||||
MAX_NUM_CU_SHARED: 1
|
||||
NUM_CACHE_INSTANCE: 304
|
||||
RAS:
|
||||
EEPROM_VERSION: N/A
|
||||
PARITY_SCHEMA: N/A
|
||||
|
||||
@@ -431,8 +431,8 @@ class AMDSMICommands():
|
||||
static_dict['limit'] = limit_info
|
||||
if args.driver:
|
||||
driver_info = {"driver_name" : "N/A",
|
||||
"driver_version" : "N/A",
|
||||
"driver_date" : "N/A"}
|
||||
"driver_version" : "N/A"
|
||||
}
|
||||
|
||||
try:
|
||||
driver_info = amdsmi_interface.amdsmi_get_gpu_driver_info(args.gpu)
|
||||
@@ -477,12 +477,11 @@ class AMDSMICommands():
|
||||
cache_info = amdsmi_interface.amdsmi_get_gpu_cache_info(args.gpu)
|
||||
for cache_key, cache_dict in cache_info.items():
|
||||
for key, value in cache_dict.items():
|
||||
if key == 'cache_size' or key == 'cache_level':
|
||||
if key == 'cache_size' or key == 'cache_level' or \
|
||||
key == 'max_num_cu_shared' or key == 'num_cache_instance':
|
||||
continue
|
||||
if value:
|
||||
cache_info[cache_key][key] = "ENABLED"
|
||||
else:
|
||||
cache_info[cache_key][key] = "DISABLED"
|
||||
if self.logger.is_human_readable_format():
|
||||
for _ , cache_values in cache_info.items():
|
||||
cache_values['cache_size'] = f"{cache_values['cache_size']} KB"
|
||||
|
||||
Reference in New Issue
Block a user