Opened 8 years ago
Closed 8 years ago
#10418 closed Bugs (fixed)
clang header doesn't consider NVCC __int128 issue
Reported by: | 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 , 8 years ago
Component: | None → config |
---|---|
Owner: | set to |
comment:2 by , 8 years ago
comment:3 by , 8 years ago
Resolution: | → fixed |
---|---|
Status: | new → closed |
Note:
See TracTickets
for help on using tickets.
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 ";"