2020-02-05 11:49:26 +01:00
|
|
|
/*
|
2023-05-02 13:46:25 +00:00
|
|
|
* Copyright (C) 2020-2023 Intel Corporation
|
2020-02-05 11:49:26 +01:00
|
|
|
*
|
|
|
|
|
* SPDX-License-Identifier: MIT
|
|
|
|
|
*
|
|
|
|
|
*/
|
|
|
|
|
|
2023-05-02 13:46:25 +00:00
|
|
|
#include "shared/source/debug_settings/debug_settings_manager.h"
|
|
|
|
|
|
2020-03-20 11:15:25 +01:00
|
|
|
#include "opencl/source/cl_device/cl_device.h"
|
2020-02-05 11:49:26 +01:00
|
|
|
|
|
|
|
|
namespace NEO {
|
|
|
|
|
|
2020-05-14 12:25:54 +02:00
|
|
|
void ClDevice::initializeOsSpecificCaps() {
|
2023-11-30 08:32:25 +00:00
|
|
|
if (enabledClVersion >= 30 && debugManager.flags.ClKhrExternalMemoryExtension.get()) {
|
2023-05-02 13:46:25 +00:00
|
|
|
deviceInfo.externalMemorySharing = CL_EXTERNAL_MEMORY_HANDLE_DMA_BUF_KHR;
|
|
|
|
|
}
|
2020-02-05 11:49:26 +01:00
|
|
|
}
|
2023-05-02 13:46:25 +00:00
|
|
|
|
2020-02-05 11:49:26 +01:00
|
|
|
} // namespace NEO
|