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

Commit 5867442

Browse files
committed
In the near future, nvc++ -stdpar will be changed to no longer predefine the macro __CUDACC__. Adjust the uses of __CUDACC__ in Thrust and CUB to check for NVC++'s stdpar mode in addition to the __CUDACC__.
1 parent fef1b9c commit 5867442

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

cub/util_compiler.cuh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@
6363
#endif // CUB_HOST_COMPILER
6464

6565
// figure out which device compiler we're using
66-
#if defined(__CUDACC__)
66+
#if defined(__CUDACC__) || defined(__NVCOMPILER_CUDA__)
6767
# define CUB_DEVICE_COMPILER CUB_DEVICE_COMPILER_NVCC
6868
#elif CUB_HOST_COMPILER == CUB_HOST_COMPILER_MSVC
6969
# define CUB_DEVICE_COMPILER CUB_DEVICE_COMPILER_MSVC

0 commit comments

Comments
 (0)