• Home
  • Raw
  • Download

Lines Matching refs:compute

27 namespace compute = boost::compute;
32 compute::vector<int> vector(data, data + 5, queue); in BOOST_AUTO_TEST_CASE()
34 compute::reduce(vector.begin(), vector.end(), &sum, compute::plus<int>(), queue); in BOOST_AUTO_TEST_CASE()
38 compute::reduce(vector.begin(), vector.end(), &product, compute::multiplies<int>(), queue); in BOOST_AUTO_TEST_CASE()
44 compute::vector<short> vector(context); in BOOST_AUTO_TEST_CASE()
47 compute::reduce(vector.begin(), vector.end(), &sum, queue); in BOOST_AUTO_TEST_CASE()
54 boost::compute::vector<int> vec(data, data + 4, queue); in BOOST_AUTO_TEST_CASE()
58 boost::compute::reduce(vec.begin(), vec.end(), &sum, queue); in BOOST_AUTO_TEST_CASE()
66 using compute::uint_; in BOOST_AUTO_TEST_CASE()
68 compute::vector<uint_> vector(8, context); in BOOST_AUTO_TEST_CASE()
69 compute::fill(vector.begin(), vector.end(), uint_(2), queue); in BOOST_AUTO_TEST_CASE()
72 compute::reduce(vector.begin(), vector.end(), &sum, compute::plus<uint_>(), queue); in BOOST_AUTO_TEST_CASE()
76 compute::reduce(vector.begin(), vector.end(), &product, compute::multiplies<uint_>(), queue); in BOOST_AUTO_TEST_CASE()
83 compute::vector<int> input(data, data + 8, queue); in BOOST_AUTO_TEST_CASE()
84 compute::vector<int> result(2, context); in BOOST_AUTO_TEST_CASE()
85 compute::reduce(input.begin(), input.begin() + 4, result.begin(), queue); in BOOST_AUTO_TEST_CASE()
86 compute::reduce(input.begin() + 4, input.end(), result.end() - 1, queue); in BOOST_AUTO_TEST_CASE()
93 compute::vector<int> vector(data, data + 5, queue); in BOOST_AUTO_TEST_CASE()
95 compute::reduce( in BOOST_AUTO_TEST_CASE()
99 compute::min<int>(), in BOOST_AUTO_TEST_CASE()
105 compute::reduce( in BOOST_AUTO_TEST_CASE()
109 compute::max<int>(), in BOOST_AUTO_TEST_CASE()
117 std::vector<compute::int2_> data; in BOOST_AUTO_TEST_CASE()
119 compute::int2_ value; in BOOST_AUTO_TEST_CASE()
125 compute::vector<compute::int2_> vector(data.begin(), data.end(), queue); in BOOST_AUTO_TEST_CASE()
127 compute::int2_ sum; in BOOST_AUTO_TEST_CASE()
128 compute::reduce( in BOOST_AUTO_TEST_CASE()
134 BOOST_CHECK_EQUAL(sum, compute::int2_(21, 36)); in BOOST_AUTO_TEST_CASE()
142 compute::buffer buffer(context, in BOOST_AUTO_TEST_CASE()
144 compute::buffer::read_only | compute::buffer::use_host_ptr, in BOOST_AUTO_TEST_CASE()
148 compute::reduce( in BOOST_AUTO_TEST_CASE()
149 compute::make_buffer_iterator<int>(buffer, 0), in BOOST_AUTO_TEST_CASE()
150 compute::make_buffer_iterator<int>(buffer, 5), in BOOST_AUTO_TEST_CASE()
152 compute::plus<int>() in BOOST_AUTO_TEST_CASE()
160 compute::reduce( in BOOST_AUTO_TEST_CASE()
161 compute::make_constant_iterator(1, 0), in BOOST_AUTO_TEST_CASE()
162 compute::make_constant_iterator(1, 5), in BOOST_AUTO_TEST_CASE()
168 compute::reduce( in BOOST_AUTO_TEST_CASE()
169 compute::make_constant_iterator(3, 0), in BOOST_AUTO_TEST_CASE()
170 compute::make_constant_iterator(3, 5), in BOOST_AUTO_TEST_CASE()
176 compute::reduce( in BOOST_AUTO_TEST_CASE()
177 compute::make_constant_iterator(2, 0), in BOOST_AUTO_TEST_CASE()
178 compute::make_constant_iterator(2, 5), in BOOST_AUTO_TEST_CASE()
180 compute::multiplies<int>(), in BOOST_AUTO_TEST_CASE()
189 compute::reduce( in BOOST_AUTO_TEST_CASE()
190 compute::make_counting_iterator(1), in BOOST_AUTO_TEST_CASE()
191 compute::make_counting_iterator(10), in BOOST_AUTO_TEST_CASE()
197 compute::reduce( in BOOST_AUTO_TEST_CASE()
198 compute::make_counting_iterator(1), in BOOST_AUTO_TEST_CASE()
199 compute::make_counting_iterator(5), in BOOST_AUTO_TEST_CASE()
201 compute::multiplies<int>(), in BOOST_AUTO_TEST_CASE()
209 using ::boost::compute::_1; in BOOST_AUTO_TEST_CASE()
212 compute::vector<int> vector(data, data + 5, queue); in BOOST_AUTO_TEST_CASE()
215 compute::reduce( in BOOST_AUTO_TEST_CASE()
216 compute::make_transform_iterator(vector.begin(), _1 + 1), in BOOST_AUTO_TEST_CASE()
217 compute::make_transform_iterator(vector.end(), _1 + 1), in BOOST_AUTO_TEST_CASE()
223 compute::reduce( in BOOST_AUTO_TEST_CASE()
224 compute::make_transform_iterator(vector.begin(), _1 > 4), in BOOST_AUTO_TEST_CASE()
225 compute::make_transform_iterator(vector.end(), _1 > 4), in BOOST_AUTO_TEST_CASE()
227 compute::plus<int>(), in BOOST_AUTO_TEST_CASE()
232 compute::reduce( in BOOST_AUTO_TEST_CASE()
233 compute::make_transform_iterator(vector.begin(), _1 * _1), in BOOST_AUTO_TEST_CASE()
234 compute::make_transform_iterator(vector.end(), _1 * _1), in BOOST_AUTO_TEST_CASE()
249 compute::vector<std::complex<float> > vector(data.size(), context); in BOOST_AUTO_TEST_CASE()
250 compute::copy(data.begin(), data.end(), vector.begin(), queue); in BOOST_AUTO_TEST_CASE()
253 compute::reduce( in BOOST_AUTO_TEST_CASE()
258 compute::reduce( in BOOST_AUTO_TEST_CASE()
259 vector.begin(), vector.end(), &result, compute::plus<std::complex<float> >(), queue in BOOST_AUTO_TEST_CASE()
263 compute::reduce( in BOOST_AUTO_TEST_CASE()
264 vector.begin(), vector.end(), &result, compute::multiplies<std::complex<float> >(), queue in BOOST_AUTO_TEST_CASE()
271 compute::vector<compute::uchar_> data(context); in BOOST_AUTO_TEST_CASE()
275 compute::reduce(data.begin(), data.end(), &sum, compute::plus<float>(), queue); in BOOST_AUTO_TEST_CASE()
282 using compute::uint_; in BOOST_AUTO_TEST_CASE()
284 compute::vector<uint_> vector(8, context); in BOOST_AUTO_TEST_CASE()
285 const compute::buffer& b = vector.get_buffer(); in BOOST_AUTO_TEST_CASE()
288 compute::fill(vector.begin(), vector.end(), uint_(2), queue); in BOOST_AUTO_TEST_CASE()
291compute::reduce(vector.begin(), vector.end(), &product, compute::multiplies<uint_>(), queue); in BOOST_AUTO_TEST_CASE()