From ffcd6adfd555669b37f5fb7eda27df8a5048db33 Mon Sep 17 00:00:00 2001 From: Kim Liegeois Date: Thu, 21 Apr 2022 08:27:23 -0600 Subject: [PATCH] Use Kokkos::ArithTraits::zero() instead of 0. --- src/batched/dense/impl/KokkosBatched_Gesv_Impl.hpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/batched/dense/impl/KokkosBatched_Gesv_Impl.hpp b/src/batched/dense/impl/KokkosBatched_Gesv_Impl.hpp index a05386642e..5a07a58990 100644 --- a/src/batched/dense/impl/KokkosBatched_Gesv_Impl.hpp +++ b/src/batched/dense/impl/KokkosBatched_Gesv_Impl.hpp @@ -224,7 +224,7 @@ KOKKOS_INLINE_FUNCTION int TeamStaticPivoting::invoke( reducer_value); row_index = value.loc; value.loc = 0; - value.val = 0.; + value.val = Kokkos::ArithTraits::zero(); Kokkos::parallel_reduce( Kokkos::TeamThreadRange(member, n), [&](const int &j, reducer_value_type &update) { @@ -329,7 +329,7 @@ KOKKOS_INLINE_FUNCTION int TeamVectorStaticPivoting::invoke( reducer_value); row_index = value.loc; value.loc = 0; - value.val = 0.; + value.val = Kokkos::ArithTraits::zero(); Kokkos::parallel_reduce( Kokkos::TeamVectorRange(member, n), [&](const int &j, reducer_value_type &update) {