From 2b134b6f303f0bb40f363557ff10b8ca7d192dc3 Mon Sep 17 00:00:00 2001 From: Vladislav Sytchenko Date: Mon, 24 Feb 2020 14:27:35 -0500 Subject: [PATCH] Remove OpenCL Single Buffer Allocation Restriction Change-Id: I5c37a7f08b02ed74ec6984c6da9ffa5dc9bf0f52 [ROCm/clr commit: 019d1feea5b8c174d3a53886b8901c708bb9e9c0] --- projects/clr/rocclr/device/gpu/gpusettings.cpp | 2 +- projects/clr/rocclr/device/pal/palsettings.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/projects/clr/rocclr/device/gpu/gpusettings.cpp b/projects/clr/rocclr/device/gpu/gpusettings.cpp index 21ae69b572..3602b1f9ab 100644 --- a/projects/clr/rocclr/device/gpu/gpusettings.cpp +++ b/projects/clr/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) && (calAttr.isWorkstation) && (oclVersion_ == OpenCL20)) { + if ((GPU_ENABLE_LARGE_ALLOCATION) && (oclVersion_ == OpenCL20)) { maxAllocSize_ = 64ULL * Gi; } else { maxAllocSize_ = 4048 * Mi; diff --git a/projects/clr/rocclr/device/pal/palsettings.cpp b/projects/clr/rocclr/device/pal/palsettings.cpp index b43d5b9916..f90aefe0cf 100644 --- a/projects/clr/rocclr/device/pal/palsettings.cpp +++ b/projects/clr/rocclr/device/pal/palsettings.cpp @@ -332,7 +332,7 @@ bool Settings::create(const Pal::DeviceProperties& palProp, supportDepthsRGB_ = true; } if (use64BitPtr_) { - if (amd::IS_HIP || (GPU_ENABLE_LARGE_ALLOCATION && wscaps.workStationBoard)) { + if (GPU_ENABLE_LARGE_ALLOCATION) { maxAllocSize_ = 64ULL * Gi; } else { maxAllocSize_ = 4048 * Mi;