Co-authored-by: Daniel Arndt <arndtd@ornl.gov>
}
#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
}
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