Skip to content

Commit

Permalink
Fix issue due to invalid component gids in Cuda Clang
Browse files Browse the repository at this point in the history
  • Loading branch information
atrantan committed Feb 13, 2017
1 parent 1d394f3 commit 7a33b4a
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions hpx/runtime/components/server/runtime_support.hpp
Expand Up @@ -455,16 +455,18 @@ namespace hpx { namespace components { namespace server

///////////////////////////////////////////////////////////////////////////
// Functions wrapped by creat_component actions below
#if defined(__NVCC__) || defined(__CUDACC__)
#if defined(__NVCC__)
template <typename Component>
HPX_DEVICE naming::gid_type runtime_support::create_component()
naming::gid_type runtime_support::create_component()
{
HPX_ASSERT(false);
return naming::gid_type();
}

template <typename Component, typename T, typename ...Ts>
HPX_DEVICE naming::gid_type runtime_support::create_component(T v, Ts... vs)
naming::gid_type runtime_support::create_component(T v, Ts... vs)
{
HPX_ASSERT(false);
return naming::gid_type();
}
#else
Expand Down

0 comments on commit 7a33b4a

Please sign in to comment.