Kokkos: fix Sort bug with empty bins
Created by: ibaned
@trilinos/kokkos
Description
This fixes a bug in Kokkos where an access would be made out of bounds when sorting with empty bins.
Motivation and Context
This bug was causing test failures in the new ATDM builds with KOKKOS_ENABLE_DEBUG=ON
, pushing the fix directly to Trilinos will help fix some of those failures.
Related Issues
- Follows kokkos/kokkos#1503
- Part of #2471 (closed)
How Has This Been Tested?
A custom build with KOKKOS_ENABLE_DEBUG
passes the KokkosKernels test that used to fail.