Fix calculating maxMemAllocSize

Signed-off-by: Szymon Morek <szymon.morek@intel.com>
This commit is contained in:
Szymon Morek
2021-07-13 16:01:30 +00:00
committed by Compute-Runtime-Automation
parent f293b409ff
commit 42c5f2235b
7 changed files with 55 additions and 15 deletions

View File

@@ -302,6 +302,7 @@ void ClDevice::initializeCaps() {
deviceInfo.preferredInteropUserSync = 1u;
device.reduceMaxMemAllocSize();
// OpenCL 1.2 requires 128MB minimum
deviceInfo.maxConstantBufferSize = sharedDeviceInfo.maxMemAllocSize;