[IE CLDNN] Add push / pop macro for OpenCL header (#1645)
[platform/upstream/dldt.git] / inference-engine / include / gpu / gpu_ocl_wrapper.hpp
1 // Copyright (C) 2018-2020 Intel Corporation
2 // SPDX-License-Identifier: Apache-2.0
3 //
4
5 /**
6  * @brief a header that defines wrappers for internal GPU plugin-specific
7  * OpenCL context and OpenCL shared memory blobs
8  *
9  * @file gpu_context_api_ocl.hpp
10  */
11 #pragma once
12
13 /**
14 * @brief Definitions required by Khronos headers
15 */
16 #define CL_HPP_ENABLE_EXCEPTIONS
17 #define CL_HPP_MINIMUM_OPENCL_VERSION 120
18 #define CL_HPP_TARGET_OPENCL_VERSION 120
19
20 #if defined __GNUC__
21 # pragma GCC diagnostic push
22 # pragma GCC system_header
23 #endif
24
25 #include <CL/cl2.hpp>
26
27 #if defined __GNUC__
28 # pragma GCC diagnostic pop
29 #endif