Boost logo

Boost :

Subject: Re: [boost] [config] BOOST_NOINLINE on nvcc
From: Mathias Gaunard (mathias.gaunard_at_[hidden])
Date: 2014-01-22 05:31:31

On 22/01/14 06:28, Andrey Semashev wrote:

> I suppose, you could just add:
> 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

/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
In any case there was already a bug about this [1], but I'm not seeing
this fixed in svn.


Boost list run by bdawes at, gregod at, cpdaniel at, john at