mirror of
https://github.com/boostorg/compute.git
synced 2026-01-27 18:52:15 +00:00
21 lines
520 B
C++
21 lines
520 B
C++
#ifndef BOOST_COMPUTE_TEST_CONTEXT_SETUP_HPP
|
|
#define BOOST_COMPUTE_TEST_CONTEXT_SETUP_HPP
|
|
|
|
#include <boost/compute/command_queue.hpp>
|
|
|
|
struct Context {
|
|
boost::compute::device device;
|
|
boost::compute::context context;
|
|
boost::compute::command_queue queue;
|
|
|
|
Context() :
|
|
device ( boost::compute::system::default_device() ),
|
|
context( boost::compute::system::default_context() ),
|
|
queue ( context, device )
|
|
{}
|
|
};
|
|
|
|
BOOST_FIXTURE_TEST_SUITE(compute_test, Context)
|
|
|
|
#endif
|