Add support for ZE_IPC_MEMORY_FLAG_BIAS_UNCACHED

Signed-off-by: Jaime Arteaga <jaime.a.arteaga.molina@intel.com>
This commit is contained in:
Jaime Arteaga
2021-07-02 09:20:44 +00:00
committed by Compute-Runtime-Automation
parent 64eb82efac
commit aa51c5ee76
2 changed files with 30 additions and 0 deletions

View File

@@ -42,6 +42,10 @@ void *DriverHandleImp::importFdHandle(ze_device_handle_t hDevice, ze_ipc_memory_
allocData.allocationFlagsProperty.flags.locallyUncachedResource = 1;
}
if (flags & ZE_IPC_MEMORY_FLAG_BIAS_UNCACHED) {
allocData.allocationFlagsProperty.flags.locallyUncachedResource = 1;
}
this->getSvmAllocsManager()->insertSVMAlloc(allocData);
if (pAlloc) {