From 28333566ee34880ba963f17f0908833b33ac020c Mon Sep 17 00:00:00 2001 From: John Maddock Date: Tue, 19 Feb 2013 17:11:36 +0000 Subject: [PATCH] Fix __Int128 support on CUDA. Exclude BOOST_GCC from getting defined on CUDA. Refs #8048. Refs #7841. [SVN r83012] --- include/boost/config/compiler/gcc.hpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/include/boost/config/compiler/gcc.hpp b/include/boost/config/compiler/gcc.hpp index b3e7b85f..4a87e217 100644 --- a/include/boost/config/compiler/gcc.hpp +++ b/include/boost/config/compiler/gcc.hpp @@ -16,7 +16,9 @@ // // 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__) +#endif #if __GNUC__ < 3 # if __GNUC_MINOR__ == 91 @@ -154,7 +156,7 @@ // // Recent GCC versions have __int128 when in 64-bit mode: // -#if defined(__SIZEOF_INT128__) +#if defined(__SIZEOF_INT128__) && !defined(__CUDACC__) # define BOOST_HAS_INT128 #endif