kokkos-remote-spaces icon indicating copy to clipboard operation
kokkos-remote-spaces copied to clipboard

Correct-behaving programs trigger view bounds check errors

Open brian-kelley opened this issue 1 year ago • 0 comments

Note: this is a very low priority issue, but I thought I would leave it for the future as KRS works its way out of Experimental.

When building Kokkos with Kokkos_ENABLE_DEBUG_BOUNDS_CHECK=ON, correct-behaving programs trigger view bounds messages and abort (happens with MPISpace and SHMEMSpace). For example, the cgsolve runs fine without bounds checking on 8 ranks:

Initial Residual = 35.7087
Iteration = 1   Residual = 35.7087
Iteration = 2   Residual = 0.322523
Iteration = 3   Residual = 0.154219
...

but not with it:

terminate called after throwing an instance of 'std::runtime_error'
  what():  View bounds error of view MyView ( 247273 < 128788 )

I'm pretty sure this is because it's comparing a global index against the local extent. One clue is the error doesn't happen when running with 1 rank.

brian-kelley avatar Aug 25 '22 20:08 brian-kelley