Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Correct-behaving programs trigger view bounds check errors #57

Open
brian-kelley opened this issue Aug 25, 2022 · 0 comments
Open

Correct-behaving programs trigger view bounds check errors #57

brian-kelley opened this issue Aug 25, 2022 · 0 comments
Assignees

Comments

@brian-kelley
Copy link
Contributor

brian-kelley commented Aug 25, 2022

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.

@janciesko janciesko self-assigned this Aug 21, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants