Skip to content

Commit

Permalink
update symbolic check_count
Browse files Browse the repository at this point in the history
  • Loading branch information
e10harvey committed Oct 31, 2023
1 parent df23b0e commit df2a9fb
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions sparse/impl/KokkosSparse_sptrsv_symbolic_impl.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -274,7 +274,7 @@ void lower_tri_symbolic(ExecSpaceIn& space, TriSolveHandle& thandle,
Kokkos::parallel_reduce(
"check_count host",
Kokkos::RangePolicy<Kokkos::DefaultHostExecutionSpace>(
0, nodes_per_level.extent(0)),
space, 0, nodes_per_level.extent(0)),
KOKKOS_LAMBDA(const long i, long& update) {
update += nodes_per_level(i);
},
Expand All @@ -285,8 +285,7 @@ void lower_tri_symbolic(ExecSpaceIn& space, TriSolveHandle& thandle,
check_count = 0; // reset
Kokkos::parallel_reduce(
"check_count device",
Kokkos::RangePolicy<Kokkos::DefaultExecutionSpace>(
0, dnodes_per_level.extent(0)),
Kokkos::RangePolicy<ExecutionSpace>(0, dnodes_per_level.extent(0)),
KOKKOS_LAMBDA(const long i, long& update) {
update += dnodes_per_level(i);
},
Expand Down Expand Up @@ -740,8 +739,8 @@ void upper_tri_symbolic(ExecutionSpace& space, TriSolveHandle& thandle,
check_count = 0; // reset
Kokkos::parallel_reduce(
"check_count device",
Kokkos::RangePolicy<Kokkos::DefaultExecutionSpace>(
0, dnodes_per_level.extent(0)),
Kokkos::RangePolicy<ExecutionSpace>(space, 0,
dnodes_per_level.extent(0)),
KOKKOS_LAMBDA(const long i, long& update) {
update += dnodes_per_level(i);
},
Expand Down

0 comments on commit df2a9fb

Please sign in to comment.