1 //---------------------------------------------------------------------------//
2 // Copyright (c) 2013 Kyle Lutz <kyle.r.lutz@gmail.com>
4 // Distributed under the Boost Software License, Version 1.0
5 // See accompanying file LICENSE_1_0.txt or copy at
6 // http://www.boost.org/LICENSE_1_0.txt
8 // See http://boostorg.github.com/compute for more information.
9 //---------------------------------------------------------------------------//
11 #ifndef BOOST_COMPUTE_CL_HPP
12 #define BOOST_COMPUTE_CL_HPP
14 #include <boost/compute/detail/cl_versions.hpp>
16 #if defined(__APPLE__)
17 #include <OpenCL/cl.h>
22 // select what OpenCL core API versions to use
23 #if defined(CL_VERSION_1_0)
24 # define BOOST_COMPUTE_CL_VERSION_1_0
26 #if defined(CL_VERSION_1_1)
27 # if !defined(BOOST_COMPUTE_MAX_CL_VERSION) || BOOST_COMPUTE_MAX_CL_VERSION >= 101
28 # define BOOST_COMPUTE_CL_VERSION_1_1
31 #if defined(CL_VERSION_1_2)
32 # if !defined(BOOST_COMPUTE_MAX_CL_VERSION) || BOOST_COMPUTE_MAX_CL_VERSION >= 102
33 # define BOOST_COMPUTE_CL_VERSION_1_2
36 #if defined(CL_VERSION_2_0)
37 # if !defined(BOOST_COMPUTE_MAX_CL_VERSION) || BOOST_COMPUTE_MAX_CL_VERSION >= 200
38 # define BOOST_COMPUTE_CL_VERSION_2_0
41 #if defined(CL_VERSION_2_1)
42 # if !defined(BOOST_COMPUTE_MAX_CL_VERSION) || BOOST_COMPUTE_MAX_CL_VERSION >= 201
43 # define BOOST_COMPUTE_CL_VERSION_2_1
46 #if defined(CL_VERSION_2_2)
47 # if !defined(BOOST_COMPUTE_MAX_CL_VERSION) || BOOST_COMPUTE_MAX_CL_VERSION >= 202
48 # define BOOST_COMPUTE_CL_VERSION_2_2
52 #endif // BOOST_COMPUTE_CL_HPP