mirror of
https://github.com/intel/compute-runtime.git
synced 2026-01-03 06:49:52 +08:00
Remove 4GB limit if shared allocations supported
Resolves: NEO-5984 Signed-off-by: Szymon Morek <szymon.morek@intel.com>
This commit is contained in:
committed by
Compute-Runtime-Automation
parent
52ad8b0977
commit
8b48b33a0c
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user