From f898642a7489e77b041dafc257f35784ccce678a Mon Sep 17 00:00:00 2001 From: Timo Heister Date: Wed, 28 Aug 2024 15:44:25 -0400 Subject: [PATCH] work around compile error about noinline for clang+cuda --- bundled/taskflow-3.7.0/taskflow/utility/macros.hpp | 4 ++++ 1 file changed, 4 insertions(+) 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 -- 2.39.5