Add memory prefetch modes for single and multiple subdevices

Single-subdevice prefetch for cmd list copy-only (with bcs) and acc mode.
Multi-subdevice prefetch (default) for shared allocation with multiple BOs.

Related-To: NEO-6740

Signed-off-by: Slawomir Milczarek <slawomir.milczarek@intel.com>
This commit is contained in:
Slawomir Milczarek
2022-11-30 00:48:56 +00:00
committed by Compute-Runtime-Automation
parent e3ede4bb92
commit 5c1b50bccf
22 changed files with 228 additions and 59 deletions

View File

@@ -4199,7 +4199,7 @@ CL_API_ENTRY cl_int CL_API_CALL clEnqueueMigrateMemINTEL(
auto allocData = pSvmAllocMgr->getSVMAlloc(ptr);
if (allocData) {
pSvmAllocMgr->prefetchMemory(pCommandQueue->getDevice(), *allocData);
pSvmAllocMgr->prefetchMemory(pCommandQueue->getDevice(), pCommandQueue->getGpgpuCommandStreamReceiver(), *allocData);
}
}
}