From a8e0f92bc4e5087cf30ca401b2407a6f99f82443 Mon Sep 17 00:00:00 2001 From: Vladislav Sytchenko Date: Tue, 7 Apr 2020 12:37:33 -0400 Subject: [PATCH] Enable large allocations by default for gfx8+ in GSL Change-Id: Ie386fca59ea3f364d49d5390d87412f7fc869f8e --- rocclr/device/gpu/gpusettings.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rocclr/device/gpu/gpusettings.cpp b/rocclr/device/gpu/gpusettings.cpp index 3602b1f9ab..219ee31a4d 100644 --- a/rocclr/device/gpu/gpusettings.cpp +++ b/rocclr/device/gpu/gpusettings.cpp @@ -294,7 +294,7 @@ bool Settings::create(const CALdeviceattribs& calAttr, bool reportAsOCL12Device, supportDepthsRGB_ = true; } if (use64BitPtr_) { - if ((GPU_ENABLE_LARGE_ALLOCATION) && (oclVersion_ == OpenCL20)) { + if (GPU_ENABLE_LARGE_ALLOCATION && (viPlus_ || (oclVersion_ == OpenCL20))) { maxAllocSize_ = 64ULL * Gi; } else { maxAllocSize_ = 4048 * Mi;