API: Common

Common

The common API provides low-level utilities that are reused across multiple Kokkos Kernels components. The current public interfaces in this section expose portable ordered-search operations on rank-1 view-like inputs.

Prefix Sums

These functions perform in-place exclusive or inclusive parallel prefix sums. There are two reasons to use these instead of Kokkos::Experimental::exclusive_scan or Kokkos::Experimental::inclusive_scan. First, KokkosKernels::exclusive_parallel_prefix_sum can optionally compute the “final sum”, or the sum of all elements on input. Second, all other versions (those not computing the final sum) are non-blocking.