]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Fix a compilation error with Kokkos+musl libc. 17127/head
authorDavid Wells <drwells@email.unc.edu>
Sat, 15 Jun 2024 13:57:02 +0000 (09:57 -0400)
committerDavid Wells <drwells@email.unc.edu>
Sat, 15 Jun 2024 13:57:02 +0000 (09:57 -0400)
Same as a7c7a4126de76da7f9f7ac157770183829839640 in kokkos/kokkos.

This is a glibc, not standard, header so this feature doesn't work when we have
a different libc.

bundled/kokkos-3.7.00/core/src/Kokkos_Macros.hpp

index 9dbd2de0c80b56eb67ac4c23eda2796d60a1d954..80f71007cfc8fbce4a67cd120c39b0d0f3bc2031 100644 (file)
@@ -653,7 +653,9 @@ static constexpr bool kokkos_omp_on_host() { return false; }
 #if (defined(KOKKOS_COMPILER_GNU) || defined(KOKKOS_COMPILER_CLANG) ||  \
      defined(KOKKOS_COMPILER_INTEL) || defined(KOKKOS_COMPILER_PGI)) && \
     !defined(_WIN32)
+#if __has_include(<execinfo.h>)
 #define KOKKOS_IMPL_ENABLE_STACKTRACE
+#endif
 #define KOKKOS_IMPL_ENABLE_CXXABI
 #endif
 

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.