Skip to content

Commit

Permalink
Use sync_execute in cuda synchronize test
Browse files Browse the repository at this point in the history
  • Loading branch information
atrantan committed Jun 15, 2017
1 parent c87dd2c commit 3602f33
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 7 deletions.
6 changes: 0 additions & 6 deletions hpx/compute/cuda/default_executor.hpp
Expand Up @@ -188,12 +188,6 @@ namespace hpx { namespace compute { namespace cuda
target_.synchronize();
}

template <typename F, typename ... Ts>
void execute(F && f, Ts &&... ts) const
{
sync_execute(std::forward<F>(f), std::forward<Ts>(ts)...);
}

template <typename F, typename Shape, typename ... Ts>
void bulk_launch(F && f, Shape const& shape, Ts &&... ts) const
{
Expand Down
2 changes: 1 addition & 1 deletion tests/performance/compute/cuda/synchronize.cpp
Expand Up @@ -40,7 +40,7 @@ int hpx_main(boost::program_options::variables_map& vm)
hpx::util::high_resolution_timer timer;
for (std::size_t i = 0; i != iterations; ++i)
{
executor.execute([] HPX_DEVICE (){});
executor.sync_execute([] HPX_DEVICE (){});
}
double elapsed = timer.elapsed();
std::cout << "executor.execute([](){}): "
Expand Down

0 comments on commit 3602f33

Please sign in to comment.