From 91f559802d115c0a33d343b46086a8308226ff2f Mon Sep 17 00:00:00 2001 From: Sean Keely Date: Tue, 30 Jan 2018 18:26:53 -0600 Subject: [PATCH] Revert CRAT table workaround. Change-Id: Ic2bf9e1fb1d00c5a31d52560e0eb37e0ae1ab08a --- runtime/hsa-runtime/core/runtime/amd_cpu_agent.cpp | 5 ----- 1 file changed, 5 deletions(-) diff --git a/runtime/hsa-runtime/core/runtime/amd_cpu_agent.cpp b/runtime/hsa-runtime/core/runtime/amd_cpu_agent.cpp index 7c76fa4875..0a58d2986f 100644 --- a/runtime/hsa-runtime/core/runtime/amd_cpu_agent.cpp +++ b/runtime/hsa-runtime/core/runtime/amd_cpu_agent.cpp @@ -77,11 +77,6 @@ void CpuAgent::InitRegionList() { }); if (system_prop != mem_props.end()) { - // CRAT/KFD workaround - for (auto idx = system_prop + 1; idx != mem_props.end(); idx++) { - if (idx->HeapType == HSA_HEAPTYPE_SYSTEM) system_prop->SizeInBytes += idx->SizeInBytes; - } - MemoryRegion* system_region_fine = new MemoryRegion(true, is_apu_node, this, *system_prop);