Added vram info to static --vram

Signed-off-by: Maisam Arif <maisarif@amd.com>
Change-Id: I48f6875d5131440848ef6f5875c6d385fee871e3


[ROCm/amdsmi commit: 6dcfd4a815]
This commit is contained in:
Maisam Arif
2023-09-22 05:10:45 -05:00
committed by Maisam Arif
parent 5a91e9805a
commit 79734a6b34
5 changed files with 54 additions and 7 deletions
+1 -1
View File
@@ -775,7 +775,7 @@ amdsmi_status_t amdsmi_get_gpu_vram_info(
uint64_t total = 0;
r = rsmi_wrapper(rsmi_dev_memory_total_get, processor_handle,
RSMI_MEM_TYPE_VRAM, &total);
info->vram_size_mb = total;
info->vram_size_mb = total / (1024 * 1024);
return AMDSMI_STATUS_SUCCESS;
}