1 //---------------------------------------------------------------------------//
2 // Copyright (c) 2014 Denis Demidov
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_TEST_OPENCL_VERSION_CHECK_HPP
12 #define BOOST_COMPUTE_TEST_OPENCL_VERSION_CHECK_HPP
14 #define REQUIRES_OPENCL_VERSION(major, minor) \
15 if (!device.check_version(major, minor)) return
17 #define REQUIRES_OPENCL_PLATFORM_VERSION(major, minor) \
18 if (!device.platform().check_version(major, minor)) return