From: Wolfgang Bangerth Date: Wed, 15 May 2024 00:23:33 +0000 (-0600) Subject: Simplify code. X-Git-Tag: v9.6.0-rc1~266^2 X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=refs%2Fpull%2F17018%2Fhead;p=dealii.git Simplify code. Co-authored-by: Daniel Arndt --- diff --git a/source/base/exceptions.cc b/source/base/exceptions.cc index 951c0d3844..50cd791f1d 100644 --- a/source/base/exceptions.cc +++ b/source/base/exceptions.cc @@ -517,20 +517,11 @@ namespace deal_II_exceptions } #endif -#if KOKKOS_VERSION >= 30600 - KOKKOS_IF_ON_HOST(({ std::abort(); })) - KOKKOS_IF_ON_DEVICE(({ - Kokkos::abort( - "Abort() was called during dealing with an assertion or exception."); - })) -#else /*if KOKKOS_VERSION >= 30600*/ -# ifdef KOKKOS_ACTIVE_EXECUTION_MEMORY_SPACE_HOST - std::abort(); -# else + // Let's abort the program here. On the host, we need to call std::abort, + // on devices we need to do something different. Kokkos::abort() does + // the right thing in all circumstances. Kokkos::abort( "Abort() was called during dealing with an assertion or exception."); -# endif -#endif }