forked from boostorg/config
Patch for noinline attribute on the HIP compiler.
Fixes https://github.com/boostorg/config/issues/392.
This commit is contained in:
@ -629,6 +629,9 @@ namespace std{ using ::type_info; }
|
|||||||
// nvcc doesn't always parse __noinline__,
|
// nvcc doesn't always parse __noinline__,
|
||||||
// see: https://svn.boost.org/trac/boost/ticket/9392
|
// see: https://svn.boost.org/trac/boost/ticket/9392
|
||||||
# define BOOST_NOINLINE __attribute__ ((noinline))
|
# define BOOST_NOINLINE __attribute__ ((noinline))
|
||||||
|
# elif defined(HIP_VERSION)
|
||||||
|
// See https://github.com/boostorg/config/issues/392
|
||||||
|
# define BOOST_NOINLINE __attribute__ ((noinline))
|
||||||
# else
|
# else
|
||||||
# define BOOST_NOINLINE __attribute__ ((__noinline__))
|
# define BOOST_NOINLINE __attribute__ ((__noinline__))
|
||||||
# endif
|
# endif
|
||||||
|
Reference in New Issue
Block a user