Skip to content

Commit

Permalink
Add missing include
Browse files Browse the repository at this point in the history
  • Loading branch information
atrantan committed Jun 8, 2017
1 parent df67d48 commit 80a3d61
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 1 deletion.
2 changes: 1 addition & 1 deletion hpx/compute/cuda/default_executor.hpp
Expand Up @@ -182,7 +182,7 @@ namespace hpx { namespace compute { namespace cuda
}

template <typename F, typename ... Ts>
void sync_execute(F && f, Ts &&... ts) const
void execute(F && f, Ts &&... ts) const
{
apply_execute(std::forward<F>(f), std::forward<Ts>(ts)...);
target_.synchronize();
Expand Down
2 changes: 2 additions & 0 deletions hpx/parallel/algorithms/for_each.hpp
Expand Up @@ -127,8 +127,10 @@ namespace hpx { namespace parallel { inline namespace v1
void operator()(Iter part_begin, std::size_t part_size,
std::size_t /*part_index*/)
{
#if !defined(__NVCC__) && !defined(__CUDACC__)
hpx::util::annotate_function annotate(f_);
(void)annotate; // suppress warning about unused variable
#endif
execute(part_begin, part_size);
}
};
Expand Down
2 changes: 2 additions & 0 deletions hpx/parallel/algorithms/for_loop.hpp
Expand Up @@ -146,8 +146,10 @@ namespace hpx { namespace parallel { inline namespace v2
void operator()(B part_begin, std::size_t part_steps,
std::size_t part_index)
{
#if !defined(__NVCC__) && !defined(__CUDACC__)
hpx::util::annotate_function annotate(f_);
(void)annotate; // suppress warning about unused variable
#endif
execute(part_begin, part_steps, part_index);
}
};
Expand Down
1 change: 1 addition & 0 deletions src/compute/cuda/cuda_target.cpp
Expand Up @@ -10,6 +10,7 @@
#include <hpx/exception.hpp>
#include <hpx/runtime_fwd.hpp>
#include <hpx/runtime/find_here.hpp>
#include <hpx/runtime/naming/id_type_impl.hpp>
#include <hpx/runtime/threads/thread_helpers.hpp>
#include <hpx/util/assert.hpp>

Expand Down

0 comments on commit 80a3d61

Please sign in to comment.