Closed acreyes closed 3 days ago
Thanks for the PR!
Out of curiosity, was there a specific use and/or performance consideration that inspired these changes?
Not any performance consideration. I was wanting to use par_reduce
with similar default arguments as I was with par_for
All tests pass. I'm force merging.
PR Summary
Replaces
KOKKOS_LAMBDA
s with templated functors inpar_dispatch(LoopPatternFlatRange, ...)
that deduce the signature of the providedfunction
to allow for extra arguments used in reductions.Makes it possible to use
par_reduce(DEFAULT_LOOP_PATTERN, ..)
&par_reduce(name, ...)
PR Checklist