From f113a2dadc7ff60c67979a54727bcbf5a891ac01 Mon Sep 17 00:00:00 2001 From: Chris Freehill Date: Fri, 8 Dec 2017 12:54:21 -0600 Subject: [PATCH] Report physical memory instead of virtual memory Change-Id: I18105e3982a96aea40e05cd78521c0c3acf75de4 [ROCm/ROCR-Runtime commit: 563581223c962a3479911a7e2e2c1606772564a4] --- .../hsa-runtime/core/runtime/amd_memory_region.cpp | 11 +---------- 1 file changed, 1 insertion(+), 10 deletions(-) diff --git a/projects/rocr-runtime/runtime/hsa-runtime/core/runtime/amd_memory_region.cpp b/projects/rocr-runtime/runtime/hsa-runtime/core/runtime/amd_memory_region.cpp index 8c9785b95b..78e749be09 100644 --- a/projects/rocr-runtime/runtime/hsa-runtime/core/runtime/amd_memory_region.cpp +++ b/projects/rocr-runtime/runtime/hsa-runtime/core/runtime/amd_memory_region.cpp @@ -287,16 +287,7 @@ hsa_status_t MemoryRegion::GetInfo(hsa_region_info_t attribute, } break; case HSA_REGION_INFO_SIZE: - switch (mem_props_.HeapType) { - case HSA_HEAPTYPE_FRAME_BUFFER_PRIVATE: - case HSA_HEAPTYPE_FRAME_BUFFER_PUBLIC: - *((size_t*)value) = static_cast(GetPhysicalSize()); - break; - default: - *((size_t*)value) = static_cast( - (full_profile()) ? GetVirtualSize() : GetPhysicalSize()); - break; - } + *((size_t*)value) = static_cast(GetPhysicalSize()); break; case HSA_REGION_INFO_ALLOC_MAX_SIZE: switch (mem_props_.HeapType) {