Added vram info to static --vram

Signed-off-by: Maisam Arif <maisarif@amd.com>
Change-Id: I48f6875d5131440848ef6f5875c6d385fee871e3
このコミットが含まれているのは:
Maisam Arif authored and Maisam Arif committed 2023-09-23 23:52:50 -04:00
1 親 79ccf1670b
コミット 6dcfd4a815
5ファイル変更
+54 -7

検索条件に一致するファイルはありません

+1 -1
ファイルの表示
@@ -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;
}