# Let deal.II know that we have found Kokkos
set(KOKKOS_FOUND ON)
else()
- find_package(Kokkos 3.0.0 QUIET
+ find_package(Kokkos 3.7.0 QUIET
HINTS ${KOKKOS_DIR} ${Kokkos_DIR} $ENV{Kokkos_DIR}
)
::dealii::MemorySpace::Device::kokkos_space::execution_space>(
exec, 0, size),
KOKKOS_LAMBDA(size_type i, RealType & update) {
-#if KOKKOS_VERSION < 30700
+#if KOKKOS_VERSION < 30400
+ update = fmax(update, fabs(data.values(i)));
+#elif KOKKOS_VERSION < 30700
update = Kokkos::Experimental::fmax(
update, Kokkos::Experimental::fabs(data.values(i)));
#else
0,
size),
KOKKOS_LAMBDA(size_type i, Number & update) {
-#if KOKKOS_VERSION < 30700
+#if KOKKOS_VERSION < 30400
+ update += fabs(data.values(i));
+#elif KOKKOS_VERSION < 30700
update += Kokkos::Experimental::fabs(data.values(i));
#else
update += Kokkos::fabs(data.values(i));
0,
size),
KOKKOS_LAMBDA(size_type i, Number & update) {
-#if KOKKOS_VERSION < 30700
+#if KOKKOS_VERSION < 30400
+ update += pow(fabs(data.values(i)), exp);
+#elif KOKKOS_VERSION < 30700
update += Kokkos::Experimental::pow(
Kokkos::Experimental::fabs(data.values(i)), exp);
#else