Added vram info to static --vram
Signed-off-by: Maisam Arif <maisarif@amd.com> Change-Id: I48f6875d5131440848ef6f5875c6d385fee871e3
This commit is contained in:
1 parent
79ccf1670b
commit
6dcfd4a815
5 files changed
+54
-7
No files matched your search
@@ -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