//---------------------------------------------------------------------------// // Copyright (c) 2013 Kyle Lutz // // Distributed under the Boost Software License, Version 1.0 // See accompanying file LICENSE_1_0.txt or copy at // http://www.boost.org/LICENSE_1_0.txt // // See http://kylelutz.github.com/compute for more information. //---------------------------------------------------------------------------// #define BOOST_TEST_MODULE TestForEach #include #include #include #include #include #include "context_setup.hpp" namespace bc = boost::compute; BOOST_AUTO_TEST_CASE(for_each_nop) { bc::vector vector(4, context); bc::iota(vector.begin(), vector.end(), 0); BOOST_COMPUTE_FUNCTION(void, nop, (int), {}); bc::for_each(vector.begin(), vector.end(), nop, queue); } BOOST_AUTO_TEST_SUITE_END()