From b12d44fc795370f822bba36cc1de58c5fc889679 Mon Sep 17 00:00:00 2001 From: jzmaddock Date: Sat, 2 Oct 2021 16:17:35 +0100 Subject: [PATCH] Disable __int128 on CUDA device code. --- include/boost/config/detail/suffix.hpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/include/boost/config/detail/suffix.hpp b/include/boost/config/detail/suffix.hpp index 6ca044b5..4533f321 100644 --- a/include/boost/config/detail/suffix.hpp +++ b/include/boost/config/detail/suffix.hpp @@ -476,11 +476,14 @@ namespace std { #endif // -// If we're on a CUDA device (note DEVICE not HOST, irrespective of compiler) then disable __float128 support if present: +// If we're on a CUDA device (note DEVICE not HOST, irrespective of compiler) then disable __int128 and __float128 support if present: // #if defined(__CUDA_ARCH__) && defined(BOOST_HAS_FLOAT128) # undef BOOST_HAS_FLOAT128 #endif +#if defined(__CUDA_ARCH__) && defined(BOOST_HAS_INT128) +# undef BOOST_HAS_INT128 +#endif // long long workaround ------------------------------------------// // On gcc (and maybe other compilers?) long long is alway supported