Support cache type in cache info

Add the cache type to the cache info.

Change-Id: Ic13ca9640b65d2b414eeebe7b884530f2036aac8
This commit is contained in:
Bill(Shuzhou) Liu
2023-11-01 10:29:17 -05:00
committed by Maisam Arif
parent 3e3a233e49
commit 56b246cc3c
5 changed files with 48 additions and 3 deletions
+3 -2
View File
@@ -312,9 +312,10 @@ int main() {
CHK_AMDSMI_RET(ret)
printf(" Output of amdsmi_get_gpu_cache_info:\n");
for (unsigned int i = 0 ; i < cache_info.num_cache_types; i++) {
printf("\tCache Level: %d, Cache Size: %d KB\n",
printf("\tCache Level: %d, Cache Size: %d KB, Cache type: 0x%x\n",
cache_info.cache[i].cache_level,
cache_info.cache[i].cache_size_kb);
cache_info.cache[i].cache_size_kb,
cache_info.cache[i].flags);
}
// Get power measure