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:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user