2
0
mirror of https://github.com/boostorg/compute.git synced 2026-01-27 18:52:15 +00:00

Add queue.finish() call to test_mersenne_twister

This adds a call to queue.finish() to ensure that the results
are ready before being checked in the mersenne_twister test.
This commit is contained in:
Kyle Lutz
2013-03-14 22:17:50 -04:00
parent e16890aa9f
commit b88de104f3

View File

@@ -27,6 +27,7 @@ BOOST_AUTO_TEST_CASE(fill_uint)
boost::compute::vector<uint_> vector(10, context);
rng.fill(vector.begin(), vector.end(), queue);
queue.finish();
BOOST_CHECK_EQUAL(uint_(vector[0]), uint_(3499211612));
BOOST_CHECK_EQUAL(uint_(vector[1]), uint_(581869302));