Disable __int128 on CUDA device code.

This commit is contained in:
jzmaddock
2021-10-02 16:17:35 +01:00
parent 1e5f50939c
commit b12d44fc79

View File

@ -476,11 +476,14 @@ namespace std {
#endif #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) #if defined(__CUDA_ARCH__) && defined(BOOST_HAS_FLOAT128)
# undef BOOST_HAS_FLOAT128 # undef BOOST_HAS_FLOAT128
#endif #endif
#if defined(__CUDA_ARCH__) && defined(BOOST_HAS_INT128)
# undef BOOST_HAS_INT128
#endif
// long long workaround ------------------------------------------// // long long workaround ------------------------------------------//
// On gcc (and maybe other compilers?) long long is alway supported // On gcc (and maybe other compilers?) long long is alway supported