Partial reduction of a 3D Array to a 1D Array #340
-
|
Hello everyone, |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
|
Hi @aborderies , there is no good example of this as far as I know in the code as it is now. You can use Kokkos atomic function, but this won't be super-efficient. There are a few examples of nested reducers in the Kokkos documentation, but it's not the easiest thing to do... e.g. https://kokkos.org/kokkos-core-wiki/ProgrammingGuide/Custom-Reductions-Built-In-Reducers.html |
Beta Was this translation helpful? Give feedback.
Hi @aborderies , there is no good example of this as far as I know in the code as it is now. You can use Kokkos atomic function, but this won't be super-efficient. There are a few examples of nested reducers in the Kokkos documentation, but it's not the easiest thing to do... e.g. https://kokkos.org/kokkos-core-wiki/ProgrammingGuide/Custom-Reductions-Built-In-Reducers.html