2
0
mirror of https://github.com/boostorg/compute.git synced 2026-01-28 19:12:15 +00:00
Files
compute/test/context_setup.hpp
Kyle Lutz 8e086104a0 Add event::set_callback() method
This adds a method to the event class which allows the user to
register a callback function to be invoked when the event reaches
the specified state (e.g. when it completes).
2014-03-16 13:20:57 -07:00

22 lines
580 B
C++

#ifndef BOOST_COMPUTE_TEST_CONTEXT_SETUP_HPP
#define BOOST_COMPUTE_TEST_CONTEXT_SETUP_HPP
#include <boost/compute/system.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 ( boost::compute::system::default_queue() )
{}
};
BOOST_FIXTURE_TEST_SUITE(compute_test, Context)
#endif