1 //---------------------------------------------------------------------------// 2 // Copyright (c) 2013-2014 Denis Demidov 3 // 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 7 // 8 // See http://boostorg.github.com/compute for more information. 9 //---------------------------------------------------------------------------// 10 11 #ifndef BOOST_COMPUTE_TEST_CONTEXT_SETUP_HPP 12 #define BOOST_COMPUTE_TEST_CONTEXT_SETUP_HPP 13 14 #include <boost/compute/system.hpp> 15 #include <boost/compute/command_queue.hpp> 16 17 #include "opencl_version_check.hpp" 18 19 struct Context { 20 boost::compute::device device; 21 boost::compute::context context; 22 boost::compute::command_queue queue; 23 ContextContext24 Context() : 25 device ( boost::compute::system::default_device() ), 26 context( boost::compute::system::default_context() ), 27 queue ( boost::compute::system::default_queue() ) 28 {} 29 }; 30 31 BOOST_FIXTURE_TEST_SUITE(compute_test, Context) 32 33 #endif 34