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,5 +1,5 @@
/*
* Copyright (C) 2020 Intel Corporation
* Copyright (C) 2020-2023 Intel Corporation
*
* SPDX-License-Identifier: MIT
*
@@ -7,6 +7,7 @@
#ifdef _WIN32
#include "shared/source/debug_settings/debug_settings_manager.h"
#include "shared/source/device/device.h"
#include "opencl/source/cl_device/cl_device.h"
@@ -14,6 +15,10 @@
namespace NEO {
void ClDevice::initializeOsSpecificCaps() {
if (enabledClVersion >= 30 && DebugManager.flags.ClKhrExternalMemoryExtension.get()) {
deviceInfo.externalMemorySharing = CL_EXTERNAL_MEMORY_HANDLE_OPAQUE_WIN32_KHR;
}
deviceExtensions += "cl_intel_simultaneous_sharing ";
deviceInfo.deviceExtensions = deviceExtensions.c_str();