Skip to content

Commit

Permalink
Fixing inclusive_scan_test
Browse files Browse the repository at this point in the history
  • Loading branch information
hkaiser committed Jul 2, 2017
1 parent 041ee3d commit ebfa638
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions tests/unit/parallel/algorithms/inclusive_scan_tests.hpp
Expand Up @@ -39,7 +39,7 @@ void inclusive_scan_benchmark()
hpx::util::high_resolution_timer t;
hpx::parallel::inclusive_scan(hpx::parallel::execution::par,
boost::begin(c), boost::end(c), boost::begin(d),
val, op);
op, val);
double elapsed = t.elapsed();

// verify values
Expand Down Expand Up @@ -486,8 +486,8 @@ void test_inclusive_scan_validate(ExPolicy p, std::vector<int> &a, std::vector<i
a.clear();
std::fill_n(std::back_inserter(a), ARRAY_SIZE, FILL_VALUE);
b.resize(a.size());
hpx::parallel::inclusive_scan(p, a.begin(), a.end(), b.begin(), 0,
[](int bar, int baz){ return bar+baz; });
hpx::parallel::inclusive_scan(p, a.begin(), a.end(), b.begin(),
[](int bar, int baz){ return bar+baz; }, 0);
//
for (int i = 0; i < static_cast<int>(b.size()); ++i) {
int value = b[i]; //-V108
Expand Down

0 comments on commit ebfa638

Please sign in to comment.