Remove 4GB limit if shared allocations supported

Resolves: NEO-5984

Signed-off-by: Szymon Morek <szymon.morek@intel.com>
This commit is contained in:
Szymon Morek
2021-06-23 15:29:36 +00:00
committed by Compute-Runtime-Automation
parent 52ad8b0977
commit 8b48b33a0c
8 changed files with 54 additions and 33 deletions

View File

@@ -3851,7 +3851,7 @@ void *clDeviceMemAllocINTEL(
return nullptr;
}
if (size > neoDevice->getHardwareCapabilities().maxMemAllocSize &&
if (size > neoDevice->getDevice().getDeviceInfo().maxMemAllocSize &&
!unifiedMemoryProperties.allocationFlags.flags.allowUnrestrictedSize) {
err.set(CL_INVALID_BUFFER_SIZE);
return nullptr;