From fd05ee66a76f545806d2aad5a68ff7a3bf589fa7 Mon Sep 17 00:00:00 2001 From: Ramesh Errabolu Date: Wed, 10 Apr 2019 18:33:07 -0500 Subject: [PATCH] Remove instantiation of MemoryRegion for heap type SVM surfaced by ROCt Change-Id: Ib4ff7e7cabe9aacb811888aeb74f652dcb57f9e0 [ROCm/ROCR-Runtime commit: ba029ebe216f2924eee3fe5985936ae4a59ee1c2] --- .../runtime/hsa-runtime/core/inc/amd_memory_region.h | 4 ---- .../runtime/hsa-runtime/core/runtime/amd_gpu_agent.cpp | 3 +-- 2 files changed, 1 insertion(+), 6 deletions(-) diff --git a/projects/rocr-runtime/runtime/hsa-runtime/core/inc/amd_memory_region.h b/projects/rocr-runtime/runtime/hsa-runtime/core/inc/amd_memory_region.h index e96a21c809..08bb78d93c 100644 --- a/projects/rocr-runtime/runtime/hsa-runtime/core/inc/amd_memory_region.h +++ b/projects/rocr-runtime/runtime/hsa-runtime/core/inc/amd_memory_region.h @@ -157,10 +157,6 @@ class MemoryRegion : public core::MemoryRegion { return mem_props_.HeapType == HSA_HEAPTYPE_GPU_SCRATCH; } - __forceinline bool IsSvm() const { - return mem_props_.HeapType == HSA_HEAPTYPE_DEVICE_SVM; - } - __forceinline uint32_t BusWidth() const { return static_cast(mem_props_.Width); } diff --git a/projects/rocr-runtime/runtime/hsa-runtime/core/runtime/amd_gpu_agent.cpp b/projects/rocr-runtime/runtime/hsa-runtime/core/runtime/amd_gpu_agent.cpp index 18bd5e4926..d3dc21cc87 100644 --- a/projects/rocr-runtime/runtime/hsa-runtime/core/runtime/amd_gpu_agent.cpp +++ b/projects/rocr-runtime/runtime/hsa-runtime/core/runtime/amd_gpu_agent.cpp @@ -296,8 +296,7 @@ void GpuAgent::InitRegionList() { memory_bus_width_ = mem_props[mem_idx].Width; memory_max_frequency_ = mem_props[mem_idx].MemoryClockMax; case HSA_HEAPTYPE_GPU_LDS: - case HSA_HEAPTYPE_GPU_SCRATCH: - case HSA_HEAPTYPE_DEVICE_SVM: { + case HSA_HEAPTYPE_GPU_SCRATCH: { MemoryRegion* region = new MemoryRegion(false, false, this, mem_props[mem_idx]);