mirror of
https://github.com/intel/compute-runtime.git
synced 2025-09-15 13:01:45 +08:00
Add AllowUnrestrictedSize debug flag
This debug flag allows to allocate memory with size greater than CL_DEVICE_MAX_MEM_ALLOC_SIZE. Signed-off-by: Szymon Morek <szymon.morek@intel.com>
This commit is contained in:

committed by
Compute-Runtime-Automation

parent
ec28084ed4
commit
3c15023871
@ -4457,7 +4457,7 @@ void *CL_API_CALL clSVMAlloc(cl_context context,
|
||||
}
|
||||
|
||||
auto pDevice = pContext->getDevice(0);
|
||||
bool allowUnrestrictedSize = (flags & CL_MEM_ALLOW_UNRESTRICTED_SIZE_INTEL);
|
||||
bool allowUnrestrictedSize = (flags & CL_MEM_ALLOW_UNRESTRICTED_SIZE_INTEL) || DebugManager.flags.AllowUnrestrictedSize.get();
|
||||
|
||||
if ((size == 0) ||
|
||||
(!allowUnrestrictedSize && (size > pDevice->getSharedDeviceInfo().maxMemAllocSize))) {
|
||||
|
Reference in New Issue
Block a user