From: Timo Heister Date: Wed, 28 Aug 2024 19:44:25 +0000 (-0400) Subject: work around compile error about noinline for clang+cuda X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f898642a7489e77b041dafc257f35784ccce678a;p=dealii.git work around compile error about noinline for clang+cuda --- diff --git a/bundled/taskflow-3.7.0/taskflow/utility/macros.hpp b/bundled/taskflow-3.7.0/taskflow/utility/macros.hpp index f184468c51..988e0e1dca 100644 --- a/bundled/taskflow-3.7.0/taskflow/utility/macros.hpp +++ b/bundled/taskflow-3.7.0/taskflow/utility/macros.hpp @@ -2,6 +2,8 @@ #if defined(_MSC_VER) #define TF_FORCE_INLINE __forceinline +#elif defined(__CUDA__) && defined(__clang__) + #define TF_FORCE_INLINE inline #elif defined(__GNUC__) && __GNUC__ > 3 #define TF_FORCE_INLINE __attribute__((__always_inline__)) inline #else @@ -10,6 +12,8 @@ #if defined(_MSC_VER) #define TF_NO_INLINE __declspec(noinline) +#elif defined(__CUDA__) && defined(__clang__) + #define TF_NO_INLINE #elif defined(__GNUC__) && __GNUC__ > 3 #define TF_NO_INLINE __attribute__((__noinline__)) #else