From ecbd2eb82069ef17594326f0228374892bc15bb0 Mon Sep 17 00:00:00 2001 From: Sean Keely Date: Wed, 13 Dec 2017 03:38:57 -0600 Subject: [PATCH] Remove region/pool size limits for 902. Temporary measure. Must be reverted once CRAT tables have been fixed. Change-Id: Id2f2673edbf7b6fc5752f8d871042b4bf4de653c [ROCm/ROCR-Runtime commit: b49e5b491745b902ac8fcdb77ec8e93725319723] --- .../runtime/hsa-runtime/core/runtime/amd_memory_region.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 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 99fbdd10ab..1bf62157c9 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 @@ -136,8 +136,9 @@ MemoryRegion::MemoryRegion(bool fine_grain, bool full_profile, core::Agent* owne (full_profile) ? os::GetUserModeVirtualMemorySize() : kGpuVmSize; } - max_single_alloc_size_ = - AlignDown(static_cast(GetPhysicalSize()), kPageSize_); + // Temporary workaround for CRAT issue. + max_single_alloc_size_ = AlignDown(size_t(-1), kPageSize_); + // max_single_alloc_size_ = AlignDown(static_cast(GetPhysicalSize()), kPageSize_); mem_flag_.ui32.CoarseGrain = (fine_grain) ? 0 : 1;