forked from boostorg/config
Fix __Int128 support on CUDA.
Exclude BOOST_GCC from getting defined on CUDA. Refs #8048. Refs #7841. [SVN r83012]
This commit is contained in:
@ -16,7 +16,9 @@
|
|||||||
//
|
//
|
||||||
// Define BOOST_GCC so we know this is "real" GCC and not some pretender:
|
// Define BOOST_GCC so we know this is "real" GCC and not some pretender:
|
||||||
//
|
//
|
||||||
|
#if !defined(__CUDACC__)
|
||||||
#define BOOST_GCC (__GNUC__ * 10000 + __GNUC_MINOR__ * 100 + __GNUC_PATCHLEVEL__)
|
#define BOOST_GCC (__GNUC__ * 10000 + __GNUC_MINOR__ * 100 + __GNUC_PATCHLEVEL__)
|
||||||
|
#endif
|
||||||
|
|
||||||
#if __GNUC__ < 3
|
#if __GNUC__ < 3
|
||||||
# if __GNUC_MINOR__ == 91
|
# if __GNUC_MINOR__ == 91
|
||||||
@ -154,7 +156,7 @@
|
|||||||
//
|
//
|
||||||
// Recent GCC versions have __int128 when in 64-bit mode:
|
// Recent GCC versions have __int128 when in 64-bit mode:
|
||||||
//
|
//
|
||||||
#if defined(__SIZEOF_INT128__)
|
#if defined(__SIZEOF_INT128__) && !defined(__CUDACC__)
|
||||||
# define BOOST_HAS_INT128
|
# define BOOST_HAS_INT128
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user