Skip to content
This repository has been archived by the owner on Mar 21, 2024. It is now read-only.

Commit

Permalink
Merge pull request #266 from NVIDIA/nvcxx-stdpar-no-cudacc
Browse files Browse the repository at this point in the history
nvc++ and __CUDACC__
  • Loading branch information
alliepiper committed Mar 1, 2021
2 parents fef1b9c + 5867442 commit 7cdf6df
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cub/util_compiler.cuh
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@
#endif // CUB_HOST_COMPILER

// figure out which device compiler we're using
#if defined(__CUDACC__)
#if defined(__CUDACC__) || defined(__NVCOMPILER_CUDA__)
# define CUB_DEVICE_COMPILER CUB_DEVICE_COMPILER_NVCC
#elif CUB_HOST_COMPILER == CUB_HOST_COMPILER_MSVC
# define CUB_DEVICE_COMPILER CUB_DEVICE_COMPILER_MSVC
Expand Down

0 comments on commit 7cdf6df

Please sign in to comment.