Skip to content

Commit

Permalink
only flag HPX code as __host__/__device__ if CUDA support is requeste…
Browse files Browse the repository at this point in the history
…d by user
  • Loading branch information
gentryx committed Feb 7, 2017
1 parent 8d562f4 commit 80277b9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion hpx/config/compiler_specific.hpp
Expand Up @@ -72,7 +72,7 @@
# define HPX_WINDOWS
#endif

#if defined(__CUDACC__)
#if defined(__CUDACC__) && defined(HPX_WITH_CUDA)
#define HPX_DEVICE __device__
#define HPX_HOST __host__
#define HPX_CONSTANT __constant__
Expand Down

0 comments on commit 80277b9

Please sign in to comment.