Opened 8 years ago

Closed 8 years ago

#10418 closed Bugs (fixed)

clang header doesn't consider NVCC __int128 issue

Reported by: qipeng.thu@… Owned by: John Maddock
Milestone: To Be Determined Component: config
Version: Boost 1.56.0 Severity: Problem
Keywords: Cc:

Description

This was seen for GCC in #8048, a fix should look like

#if defined(SIZEOF_INT128) && !defined(CUDACC) # define BOOST_HAS_INT128 #endif

in boost/config/compiler/clang.hpp, where it currently looks like

#if defined(SIZEOF_INT128) # define BOOST_HAS_INT128 #endif

This prevents some CUDA related code to compile properly on MacOS (which uses clang).

Change History (3)

comment:1 by viboes, 8 years ago

Component: Noneconfig
Owner: set to John Maddock

comment:2 by anonymous, 8 years ago

I have reproduced this problem with boost 1.56 on OS X 10.9 with CUDA 6.5. Compilation gave the error:

/usr/local/include/boost/config/suffix.hpp(496): error: identifier "int128" is undefined /usr/local/include/boost/config/suffix.hpp(497): error: expected a ";"

comment:3 by John Maddock, 8 years ago

Resolution: fixed
Status: newclosed
Note: See TracTickets for help on using tickets.