From 76d4eaf4bef75e368366505f8abcbca102771bd9 Mon Sep 17 00:00:00 2001 From: jzmaddock Date: Sun, 8 Aug 2021 11:53:57 +0100 Subject: [PATCH] Patch for noinline attribute on the HIP compiler. Fixes https://github.com/boostorg/config/issues/392. --- include/boost/config/detail/suffix.hpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/include/boost/config/detail/suffix.hpp b/include/boost/config/detail/suffix.hpp index afcf1b43..bdc96af4 100644 --- a/include/boost/config/detail/suffix.hpp +++ b/include/boost/config/detail/suffix.hpp @@ -629,6 +629,9 @@ namespace std{ using ::type_info; } // nvcc doesn't always parse __noinline__, // see: https://svn.boost.org/trac/boost/ticket/9392 # define BOOST_NOINLINE __attribute__ ((noinline)) +# elif defined(HIP_VERSION) + // See https://github.com/boostorg/config/issues/392 +# define BOOST_NOINLINE __attribute__ ((noinline)) # else # define BOOST_NOINLINE __attribute__ ((__noinline__)) # endif