]> https://gitweb.dealii.org/ - dealii.git/commitdiff
work around compile error about noinline for clang+cuda 17606/head
authorTimo Heister <timo.heister@gmail.com>
Wed, 28 Aug 2024 19:44:25 +0000 (15:44 -0400)
committerTimo Heister <timo.heister@gmail.com>
Wed, 28 Aug 2024 20:57:58 +0000 (16:57 -0400)
bundled/taskflow-3.7.0/taskflow/utility/macros.hpp

index f184468c51b9b5273fa9da6875a961cae233c650..988e0e1dcab2c52e65b70485a29043c650a01494 100644 (file)
@@ -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

In the beginning the Universe was created. This has made a lot of people very angry and has been widely regarded as a bad move.

Douglas Adams


Typeset in Trocchi and Trocchi Bold Sans Serif.