feature: add support for cl_khr_external_memory extension

Related-To: NEO-7069
Signed-off-by: Warchulski, Jaroslaw <jaroslaw.warchulski@intel.com>
This commit is contained in:
Warchulski, Jaroslaw
2023-05-02 13:46:25 +00:00
committed by Compute-Runtime-Automation
parent 769a9e515e
commit 7fdf4985a3
13 changed files with 83 additions and 2 deletions

View File

@@ -1,14 +1,20 @@
/*
* Copyright (C) 2020 Intel Corporation
* Copyright (C) 2020-2023 Intel Corporation
*
* SPDX-License-Identifier: MIT
*
*/
#include "shared/source/debug_settings/debug_settings_manager.h"
#include "opencl/source/cl_device/cl_device.h"
namespace NEO {
void ClDevice::initializeOsSpecificCaps() {
if (enabledClVersion >= 30 && DebugManager.flags.ClKhrExternalMemoryExtension.get()) {
deviceInfo.externalMemorySharing = CL_EXTERNAL_MEMORY_HANDLE_DMA_BUF_KHR;
}
}
} // namespace NEO