Skip to content

Commit

Permalink
Merge pull request #2769 from atrantan/master
Browse files Browse the repository at this point in the history
Remove some other warnings and errors detected by clang 5.0
  • Loading branch information
hkaiser committed Jul 20, 2017
2 parents c763202 + 0420d00 commit 776c713
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 4 deletions.
2 changes: 2 additions & 0 deletions hpx/runtime/threads/coroutines/detail/context_linux_x86.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -421,8 +421,10 @@ namespace hpx { namespace threads { namespace coroutines
std::ptrdiff_t m_stack_size;
void* m_stack;

#if defined(HPX_HAVE_THREAD_STACKOVERFLOW_DETECTION)
struct sigaction action;
stack_t segv_stack;
#endif
};

typedef x86_linux_context_impl context_impl;
Expand Down
11 changes: 9 additions & 2 deletions hpx/util/annotated_function.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,13 @@ namespace hpx { namespace util
{
#if defined(HPX_HAVE_THREAD_DESCRIPTION)
///////////////////////////////////////////////////////////////////////////
#if HPX_HAVE_ITTNOTIFY != 0
#if (!defined(__NVCC__) && !defined(__CUDACC__))
struct annotate_function
{
template <typename F>
explicit HPX_HOST_DEVICE annotate_function(F && f){}
};
#elif HPX_HAVE_ITTNOTIFY != 0
struct annotate_function
{
HPX_NON_COPYABLE(annotate_function);
Expand Down Expand Up @@ -170,7 +176,8 @@ namespace hpx { namespace util
HPX_NON_COPYABLE(annotate_function);

explicit annotate_function(char const* name) {}
template <typename F> explicit annotate_function(F && f) {}
template <typename F>
explicit HPX_HOST_DEVICE annotate_function(F && f) {}
};

///////////////////////////////////////////////////////////////////////////
Expand Down
4 changes: 2 additions & 2 deletions tests/unit/computeapi/cuda/default_executor.cu
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ void test_bulk_sync()
hpx::compute::cuda::target target;
executor exec(target);
// traits::bulk_execute(exec, hpx::util::bind(&bulk_test, _1), v);
hpx::parallel::execution::sync_bulk_execute(exec, bulk_test(), v);
hpx::parallel::execution::bulk_sync_execute(exec, bulk_test(), v);
}

void test_bulk_async()
Expand All @@ -84,7 +84,7 @@ void test_bulk_async()
// exec, hpx::util::bind(&bulk_test, _1), v)
// ).get();
hpx::when_all(
hpx::parallel::execution::async_bulk_execute(exec, bulk_test(), v)
hpx::parallel::execution::bulk_async_execute(exec, bulk_test(), v)
).get();
}

Expand Down

0 comments on commit 776c713

Please sign in to comment.