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:
@@ -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));
|
||||
|
||||
Reference in New Issue
Block a user