Skip to content

Commit

Permalink
Fixing test for smpd_block
Browse files Browse the repository at this point in the history
  • Loading branch information
hkaiser committed May 17, 2017
1 parent ff63e56 commit 2546c6b
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions hpx/parallel/spmd_block.hpp
Expand Up @@ -139,13 +139,14 @@ namespace hpx { namespace parallel { HPX_INLINE_NAMESPACE(v2)

return
hpx::parallel::executor_traits<
typename std::decay<executor_type>::type
typename std::decay<executor_type>::type
>::bulk_async_execute(
policy.executor(),
detail::spmd_block_helper<F>{
barrier, std::forward<F>(f), num_images
},
boost::irange(0ul, num_images), std::forward<Args>(args)...);
boost::irange(std::size_t(0), num_images),
std::forward<Args>(args)...);
}

// Synchronous version
Expand Down Expand Up @@ -178,13 +179,14 @@ namespace hpx { namespace parallel { HPX_INLINE_NAMESPACE(v2)
= std::make_shared<hpx::lcos::local::barrier>(num_images);

hpx::parallel::executor_traits<
typename std::decay<executor_type>::type
typename std::decay<executor_type>::type
>::bulk_execute(
policy.executor(),
detail::spmd_block_helper<F>{
barrier, std::forward<F>(f), num_images
},
boost::irange(0ul, num_images), std::forward<Args>(args)...);
boost::irange(std::size_t(0), num_images),
std::forward<Args>(args)...);
}

template <typename F, typename ... Args>
Expand Down

0 comments on commit 2546c6b

Please sign in to comment.