DLPrimitives
opencl_include.hpp
1 #pragma once
2 #include <dlprim/config.hpp>
3 #ifndef DLPRIM_USE_CL1_HPP
4 # ifndef CL_HPP_ENABLE_EXCEPTIONS
5 # define CL_HPP_ENABLE_EXCEPTIONS
6 # endif
7 # ifndef CL_HPP_MINIMUM_OPENCL_VERSION
8 # define CL_HPP_MINIMUM_OPENCL_VERSION 120
9 # endif
10 # ifndef CL_TARGET_OPENCL_VERSION
11 # define CL_TARGET_OPENCL_VERSION 120
12 # endif
13 # ifndef CL_HPP_TARGET_OPENCL_VERSION
14 # define CL_HPP_TARGET_OPENCL_VERSION 120
15 # endif
16 # include <CL/cl2.hpp>
17 #else
18 # ifndef CL_TARGET_OPENCL_VERSION
19 # define CL_TARGET_OPENCL_VERSION 120
20 # endif
21 # ifndef __CL_ENABLE_EXCEPTIONS
22 # define __CL_ENABLE_EXCEPTIONS
23 # endif
24 # include <CL/cl.hpp>
25 #endif
26