You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Add support for ZE_DEVICE_MEM_ALLOC_FLAG_BIAS_UNCACHED
Add support for device and shared allocations that use the
ZE_DEVICE_MEM_ALLOC_FLAG_BIAS_UNCACHED flag, whether the
kernel using the memory is stateless or statefull.
Signed-off-by: Jaime Arteaga <[email protected]>
auto allocData = this->module->getDevice()->getDriverHandle()->getSvmAllocsManager()->getSVMAlloc(reinterpret_cast<void *>(allocation->getGpuAddress()));
480
+
if (allocData && allocData->allocationFlagsProperty.flags.locallyUncachedResource) {
ze_result_t res = device->getDriverHandle()->allocDeviceMem(device->toHandle(),
799
+
&deviceDesc,
800
+
16384u,
801
+
0u,
802
+
&devicePtr);
803
+
EXPECT_EQ(ZE_RESULT_SUCCESS, res);
804
+
805
+
auto alloc = device->getDriverHandle()->getSvmAllocsManager()->getSVMAllocs()->get(devicePtr)->gpuAllocations.getGraphicsAllocation(device->getRootDeviceIndex());
0 commit comments