On 22/01/14 06:28, Andrey Semashev wrote:
I suppose, you could just add:
#define BOOST_NOINLINE
to boost/config/compiler/nvcc.hpp, with a descriptive comment. When the macro is defined in the compiler's config, it won't be defined by suffix.hpp.
How does the problem manifest itself though?
boost/assert.hpp uses BOOST_NOINLINE now, and it gives me the following errors: /home/nt2/dev/boost/trunk/boost/assert.hpp(102): warning: unknown attribute "__attribute__" /home/nt2/dev/boost/trunk/boost/assert.hpp:102: error: ‘noinline’ was not declared in this scope /home/nt2/dev/boost/trunk/boost/assert.hpp:103: warning: ‘__attribute__’ attribute directive ignored It looks as if nvcc is defining a __noinline__ macro to __attribute__((noinline)). In any case there was already a bug about this [1], but I'm not seeing this fixed in svn. [1] https://svn.boost.org/trac/boost/ticket/9392