Skip to content

Commit

Permalink
Use local "reducer" variable
Browse files Browse the repository at this point in the history
Co-authored-by: Thomas Conrad Clevenger <tccleve@sandia.gov>
  • Loading branch information
masterleinad and tcclevenger committed Mar 2, 2023
1 parent 1bfd0cc commit 9a33347
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion core/src/Threads/Kokkos_Threads_Parallel_Range.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -234,7 +234,7 @@ class ParallelReduce<CombinedFunctorReducerType, Kokkos::RangePolicy<Traits...>,
const pointer_type data =
(pointer_type)ThreadsExec::root_reduce_scratch();

const unsigned n = m_functor_reducer.get_reducer().value_count();
const unsigned n = reducer.value_count();
for (unsigned i = 0; i < n; ++i) {
m_result_ptr[i] = data[i];
}
Expand Down

0 comments on commit 9a33347

Please sign in to comment.