From dd3074f901597357c193e571384445455d8b4878 Mon Sep 17 00:00:00 2001 From: Kamil Diedrich Date: Tue, 13 Jul 2021 22:24:48 +0000 Subject: [PATCH] Add shareable flag to alloc Signed-off-by: Kamil Diedrich --- level_zero/core/source/context/context_imp.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/level_zero/core/source/context/context_imp.cpp b/level_zero/core/source/context/context_imp.cpp index 1f9d38b4f4..d8c73aaf37 100644 --- a/level_zero/core/source/context/context_imp.cpp +++ b/level_zero/core/source/context/context_imp.cpp @@ -149,7 +149,7 @@ ze_result_t ContextImp::allocDeviceMem(ze_device_handle_t hDevice, deviceBitfields[rootDeviceIndex] = neoDevice->getDeviceBitfield(); NEO::SVMAllocsManager::UnifiedMemoryProperties unifiedMemoryProperties(InternalMemoryType::DEVICE_UNIFIED_MEMORY, this->driverHandle->rootDeviceIndices, deviceBitfields); - unifiedMemoryProperties.allocationFlags.flags.shareable = lookupTable.exportMemory; + unifiedMemoryProperties.allocationFlags.flags.shareable = 1u; unifiedMemoryProperties.device = neoDevice; if (deviceDesc->flags & ZE_DEVICE_MEM_ALLOC_FLAG_BIAS_UNCACHED) {