Boost C++ Libraries: Ticket #11391: nvcc 7.0 unable to compile with boost/atomic/detail/gcc-atomic.hpp included https://svn.boost.org/trac10/ticket/11391 <p> including boost/thread.hpp produces /usr/include/boost/atomic/detail/gcc-atomic.hpp(248): error: argument of type "const volatile uint8_t *" is incompatible with parameter of type "volatile void *" </p> <p> $ nvcc -lboost_thread boost_thread.cu #include &lt;boost/thread.hpp&gt; </p> <p> <span class="underline">global</span> void add_2(float a, float b, float *c){ </p> <blockquote> <p> *c = a+b; </p> </blockquote> <p> } </p> <p> int main(int argc, char *argv[]) { </p> <blockquote> <p> float res = 0; float a = boost::thread::hardware_concurrency(); add_2&lt;&lt;&lt;1,1&gt;&gt;&gt;(a,52.,&amp;res); </p> </blockquote> <blockquote> <p> std::cout &lt;&lt; boost::thread::hardware_concurrency() &lt;&lt; "]" &lt;&lt; res &lt;&lt; "\n"; return 0; </p> </blockquote> <p> } </p> <p> system details: </p> <p> fedora 21, 4.0.4-202.fc21.x86_64 gcc: gcc (GCC) 4.9.2 20150212 (Red Hat 4.9.2-6) boost: 1.55.0 Release 8.fc21 from system repos cuda 7.0.28 </p> <p> I already filed a bug report with nvidia </p> en-us Boost C++ Libraries /htdocs/site/boost.png https://svn.boost.org/trac10/ticket/11391 Trac 1.4.3 squelsh@… Mon, 15 Jun 2015 06:00:23 GMT <link>https://svn.boost.org/trac10/ticket/11391#comment:1 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/11391#comment:1</guid> <description> <p> Same here: Pretty annoying with Ubuntu 15.04. @steinbac: Could you please post a link to you Bugreport at NVidia? So I can track progress there? </p> </description> <category>Ticket</category> </item> <item> <dc:creator>viboes</dc:creator> <pubDate>Sun, 28 Jun 2015 08:52:46 GMT</pubDate> <title>owner, component changed https://svn.boost.org/trac10/ticket/11391#comment:2 https://svn.boost.org/trac10/ticket/11391#comment:2 <ul> <li><strong>owner</strong> changed from <span class="trac-author">Anthony Williams</span> to <span class="trac-author">timblechmann</span> </li> <li><strong>component</strong> <span class="trac-field-old">thread</span> → <span class="trac-field-new">atomic</span> </li> </ul> <p> Moving it to Boost.Atomic </p> Ticket timblechmann Mon, 29 Jun 2015 21:14:13 GMT <link>https://svn.boost.org/trac10/ticket/11391#comment:3 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/11391#comment:3</guid> <description> <p> could the reporter possibly double-check, if this still occurs with boost-1.58? </p> </description> <category>Ticket</category> </item> <item> <dc:creator>anonymous</dc:creator> <pubDate>Tue, 30 Jun 2015 08:00:52 GMT</pubDate> <title/> <link>https://svn.boost.org/trac10/ticket/11391#comment:4 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/11391#comment:4</guid> <description> <p> Replying to <a class="ticket" href="https://svn.boost.org/trac10/ticket/11391#comment:3" title="Comment 3">timblechmann</a>: </p> <blockquote class="citation"> <p> could the reporter possibly double-check, if this still occurs with boost-1.58? </p> </blockquote> <p> The issue is indeed gone with boost/1.58.0 built with gcc 4.8.3. will check with gcc 4.9.2-6 by the end of the week. </p> </description> <category>Ticket</category> </item> <item> <author>steinbac@…</author> <pubDate>Thu, 06 Aug 2015 09:45:15 GMT</pubDate> <title/> <link>https://svn.boost.org/trac10/ticket/11391#comment:5 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/11391#comment:5</guid> <description> <p> The problem disappears with cuda 7.5 as suggested by nvidia. </p> <p> Nvidia bug information is: </p> <hr /> <p> Bug Information </p> <hr /> <blockquote> <p> Requester: Peter Steinbach </p> </blockquote> <blockquote> <p> NVIDIA Bug ID: 1654452 </p> <blockquote> <p> Date: 06/11/2015 12:48 AM </p> </blockquote> </blockquote> <p> <a class="missing wiki">Company/Division</a>: CUDA <a class="missing wiki">RegDev</a> Program [<a class="missing wiki">DevZone</a>] </p> <blockquote> <p> Severity: Medium Priority: 2 - Medium Synopsis: unable to compile with boost/atomic/detail/gcc-atomic.hpp included </p> </blockquote> <blockquote> <p> Description: including boost/thread.hpp produces </p> </blockquote> <p> /usr/include/boost/atomic/detail/gcc-atomic.hpp(248): error: argument of type "const volatile uint8_t *" is incompatible with parameter of type "volatile void *" </p> <p> I double checked on a CentOS 7 box that comes with an "older" gcc (4.8.3) and the problem does not occur there with any cuda version! </p> </description> <category>Ticket</category> </item> <item> <dc:creator>Andrey Semashev</dc:creator> <pubDate>Mon, 17 Aug 2015 20:32:15 GMT</pubDate> <title>cc set https://svn.boost.org/trac10/ticket/11391#comment:6 https://svn.boost.org/trac10/ticket/11391#comment:6 <ul> <li><strong>cc</strong> <span class="trac-author">Andrey.Semashev@…</span> added </li> </ul> <p> So, can we close this as the bug is fixed in nvcc? </p> Ticket timblechmann Sat, 22 Aug 2015 08:20:28 GMT status changed; resolution set https://svn.boost.org/trac10/ticket/11391#comment:7 https://svn.boost.org/trac10/ticket/11391#comment:7 <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">wontfix</span> </li> </ul> <p> closing as it is fixed in nvcc </p> Ticket