Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Fixing more compiler errors when not compiling in CUDA mode
  • Loading branch information
sithhell committed Sep 5, 2017
1 parent 34d4a77 commit bd8f7eb
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions hpx/compute/cuda/default_executor.hpp
Expand Up @@ -96,6 +96,7 @@ namespace hpx { namespace compute { namespace cuda
static void call(cuda::target const& target, F && f,
Shape const& shape, Ts &&... ts)
{
#if defined(HPX_COMPUTE_DEVICE_CODE) || defined(HPX_COMPUTE_HOST_CODE)
typedef typename hpx::traits::range_traits<Shape>::value_type
value_type;

Expand Down Expand Up @@ -126,6 +127,11 @@ namespace hpx { namespace compute { namespace cuda
std::forward<F>(f), std::forward<Ts>(ts)...
);
}
#else
HPX_THROW_EXCEPTION(hpx::not_implemented,
"hpx::compute::cuda::detail::bulk_launch_helper",
"Trying to launch a CUDA kernel, but did not compile in CUDA mode");
#endif
}
};
}
Expand Down

0 comments on commit bd8f7eb

Please sign in to comment.