Boost C++ Libraries: Ticket #10420: icpc issue when mixing boost and cuda. https://svn.boost.org/trac10/ticket/10420 <p> There are 2 problems when using nvcc with intel's compiler and including boost headers. Considering the following <strong>truc.cu</strong> file: </p> <pre class="wiki">#include "boost/container/vector.hpp" int main() { return 0; } </pre><p> The compilation raises the following two issues: </p> <pre class="wiki">[alainm@gurney bug]$ nvcc -ccbin=icpc -c ./truc.cu -I../include nvcc warning : The 'compute_10' and 'sm_10' architectures are deprecated, and may be removed in a future release. In file included from ../include/boost/config.hpp(39), from ../include/boost/container/detail/config_begin.hpp(12), from ../include/boost/container/vector.hpp(18), from ./truc.cu(1): ../include/boost/config/compiler/intel.hpp(40): warning #47: incompatible redefinition of macro "BOOST_COMPILER" (declared at line 11 of "../include/boost/config/compiler/nvcc.hpp") #define BOOST_COMPILER "Intel C++ version " BOOST_STRINGIZE(BOOST_INTEL_CXX_VERSION) ^ ../include/boost/config/suffix.hpp(496): error: identifier "__int128" is undefined ../include/boost/config/suffix.hpp(497): error: expected a ";" ../include/boost/type_traits/is_integral.hpp(73): error: namespace "boost" has no member "uint128_type" ../include/boost/type_traits/is_integral.hpp(73): error: class "boost::is_integral&lt;boost::int128_type&gt;" has already been defined ../include/boost/type_traits/is_integral.hpp(73): error: namespace "boost" has no member "uint128_type" ../include/boost/type_traits/is_integral.hpp(73): error: class "boost::is_integral&lt;const boost::int128_type&gt;" has already been defined ../include/boost/type_traits/is_integral.hpp(73): error: namespace "boost" has no member "uint128_type" ../include/boost/type_traits/is_integral.hpp(73): error: class "boost::is_integral&lt;volatile boost::int128_type&gt;" has already been defined ../include/boost/type_traits/is_integral.hpp(73): error: namespace "boost" has no member "uint128_type" ../include/boost/type_traits/is_integral.hpp(73): error: class "boost::is_integral&lt;const volatile boost::int128_type&gt;" has already been defined ../include/boost/functional/hash/hash.hpp(116): error: namespace "boost" has no member "uint128_type" ../include/boost/functional/hash/hash.hpp(468): error: namespace "boost" has no member "uint128_type" ../include/boost/functional/hash/hash.hpp(468): error: class "boost::hash&lt;boost::int128_type&gt;" has already been defined ../include/boost/functional/hash/hash.hpp(468): error: namespace "boost" has no member "uint128_type" ../include/boost/functional/hash/hash.hpp(468): error: namespace "boost" has no member "uint128_type" ../include/boost/type_traits/make_unsigned.hpp(77): error: namespace "boost" has no member "uint128_type" ../include/boost/type_traits/make_unsigned.hpp(109): error: namespace "boost" has no member "uint128_type" 17 errors detected in the compilation of "/tmp/tmpxft_000052b6_00000000-6_truc.cpp1.ii". [alainm@gurney bug]$ </pre><p> The two problem are the double definition of <strong>BOOST_COMPILER</strong> (handled with gcc and visualc) and the absence of int128 in that mode. </p> en-us Boost C++ Libraries /htdocs/site/boost.png https://svn.boost.org/trac10/ticket/10420 Trac 1.4.3 Alain Miniussi <alain@…> Fri, 29 Aug 2014 12:05:58 GMT <link>https://svn.boost.org/trac10/ticket/10420#comment:1 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/10420#comment:1</guid> <description> <p> I have a fix, but this is my first attempts to using boost through github so it will take some hours.. </p> </description> <category>Ticket</category> </item> <item> <author>Alain Miniussi <alain@…></author> <pubDate>Fri, 29 Aug 2014 12:44:27 GMT</pubDate> <title/> <link>https://svn.boost.org/trac10/ticket/10420#comment:2 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/10420#comment:2</guid> <description> <p> the int128 issue seems to be fixed in <a class="missing changeset" title="No changeset 0a34d7b07e592663a407ee408dc6c943ee2743a8 in the repository">[0a34d7b07e592663a407ee408dc6c943ee2743a8]</a> </p> </description> <category>Ticket</category> </item> <item> <author>Alain Miniussi <alain@…></author> <pubDate>Fri, 29 Aug 2014 13:26:49 GMT</pubDate> <title/> <link>https://svn.boost.org/trac10/ticket/10420#comment:3 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/10420#comment:3</guid> <description> <p> There's a pull request with a fix available: <a class="ext-link" href="https://github.com/boostorg/config/pull/37"><span class="icon">​</span>https://github.com/boostorg/config/pull/37</a> It's my first modification through github so I might have missed something... </p> </description> <category>Ticket</category> </item> <item> <author>Alain Miniussi <alain@…></author> <pubDate>Fri, 29 Aug 2014 13:32:23 GMT</pubDate> <title/> <link>https://svn.boost.org/trac10/ticket/10420#comment:4 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/10420#comment:4</guid> <description> <p> Replying to <a class="ticket" href="https://svn.boost.org/trac10/ticket/10420#comment:3" title="Comment 3">Alain Miniussi &lt;alain@…&gt;</a>: </p> <blockquote class="citation"> <p> There's a pull request with a fix available: <a class="ext-link" href="https://github.com/boostorg/config/pull/37"><span class="icon">​</span>https://github.com/boostorg/config/pull/37</a> It's my first modification through github so I might have missed something... </p> </blockquote> <p> And yes I did. starting from scratch... </p> </description> <category>Ticket</category> </item> <item> <dc:creator>John Maddock</dc:creator> <pubDate>Sun, 16 Apr 2017 17:12:01 GMT</pubDate> <title>status changed; resolution set https://svn.boost.org/trac10/ticket/10420#comment:5 https://svn.boost.org/trac10/ticket/10420#comment:5 <ul> <li><strong>status</strong> <span class="trac-field-old">new</span> → <span class="trac-field-new">closed</span> </li> <li><strong>resolution</strong> → <span class="trac-field-new">fixed</span> </li> </ul> <p> I believe this is indeed fixed now.... closing down. </p> Ticket