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

Commit

Permalink
fixes THRUST_DEVICE_COMPILER_CLANG detection
Browse files Browse the repository at this point in the history
  • Loading branch information
andrewcorrigan authored and Andrew Corrigan committed Oct 11, 2016
1 parent 456ff47 commit 955795e
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion thrust/detail/config/compiler.h
Expand Up @@ -73,8 +73,9 @@
// CUDA-capable clang should behave similar to NVCC.
#if defined(__CUDA__) && defined(__clang__)
#define THRUST_DEVICE_COMPILER THRUST_DEVICE_COMPILER_CLANG
#elif defined(__CUDA__)
#else
#define THRUST_DEVICE_COMPILER THRUST_DEVICE_COMPILER_NVCC
#endif
#else
#define THRUST_DEVICE_COMPILER THRUST_DEVICE_COMPILER_UNKNOWN
#endif
Expand Down

0 comments on commit 955795e

Please sign in to comment.