Permalink
Browse files

Fixing test for smpd_block

  • Loading branch information...
1 parent ff63e56 commit 2546c6b50a11a7621db75394f8e3cc68cd20993e @hkaiser hkaiser committed May 17, 2017
Showing with 6 additions and 4 deletions.
  1. +6 −4 hpx/parallel/spmd_block.hpp
@@ -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
@@ -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>

0 comments on commit 2546c6b

Please sign in to comment.