Skip to content

Commit

Permalink
Use Kokkos::ArithTraits<value_type>::zero() instead of 0.
Browse files Browse the repository at this point in the history
  • Loading branch information
kliegeois committed Apr 21, 2022
1 parent c65915d commit ffcd6ad
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/batched/dense/impl/KokkosBatched_Gesv_Impl.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -224,7 +224,7 @@ KOKKOS_INLINE_FUNCTION int TeamStaticPivoting<MemberType>::invoke(
reducer_value);
row_index = value.loc;
value.loc = 0;
value.val = 0.;
value.val = Kokkos::ArithTraits<value_type>::zero();
Kokkos::parallel_reduce(
Kokkos::TeamThreadRange(member, n),
[&](const int &j, reducer_value_type &update) {
Expand Down Expand Up @@ -329,7 +329,7 @@ KOKKOS_INLINE_FUNCTION int TeamVectorStaticPivoting<MemberType>::invoke(
reducer_value);
row_index = value.loc;
value.loc = 0;
value.val = 0.;
value.val = Kokkos::ArithTraits<value_type>::zero();
Kokkos::parallel_reduce(
Kokkos::TeamVectorRange(member, n),
[&](const int &j, reducer_value_type &update) {
Expand Down

0 comments on commit ffcd6ad

Please sign in to comment.