Skip to content

Commit

Permalink
Fixing more compiler errors when not compiling in CUDA mode
Browse files Browse the repository at this point in the history
  • Loading branch information
sithhell committed Sep 5, 2017
1 parent 9e45b9b commit 28a5ec8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions hpx/compute/cuda/allocator.hpp
Expand Up @@ -175,7 +175,7 @@ namespace hpx { namespace compute { namespace cuda
{
::new (p + idx) T (std::forward<Args>(args)...);
}
#else
#elif defined(HPX_COMPUTE_HOST_CODE)
int threads_per_block = (std::min)(1024, int(count));
int num_blocks =
int((count + threads_per_block - 1) / threads_per_block);
Expand Down Expand Up @@ -222,7 +222,7 @@ namespace hpx { namespace compute { namespace cuda
{
(p + idx)->~T();
}
#else
#elif defined(HPX_COMPUTE_HOST_CODE)
int threads_per_block = (std::min)(1024, int(count));
int num_blocks =
int((count + threads_per_block) / threads_per_block) - 1;
Expand Down

0 comments on commit 28a5ec8

Please sign in to comment.