-
Notifications
You must be signed in to change notification settings - Fork 99
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
CrsMatrix: sumIntoValues and replaceValues incorrectly count the number of valid column indices. #11
Comments
Looking at older Tpetra implementation, this is the case. Both it and hint are inside the |
@vbrunini oops! sorry about that :-) |
Mark did you fix this? |
@crtrott Not yet; too many things on my plate. |
Is this actually fixed? |
@crtrott No. I can take it if you haven't started yet. |
I'm on it. |
The bug in question is the following: kokkos/kokkos-kernels#11 I will fix this in Trilinos first, so that Trilinos users can see the benefit of this fix immediately. Once Trilinos tests pass, I'll add the patch to kokkos-kernels.
@mndevec FYI I tested the PR through Trilinos already. |
Did you test with CUDA? |
Fix #11 (replaceValues / sumIntoValues bug)
NVM it is so simple I just merge it. |
@crtrott wrote:
Yes, at least Tpetra. There are some Stokhos tests that were failing before for me; this is not relevant to that. Thanks! |
The bug in question is the following: kokkos/kokkos-kernels#11 I will fix this in Trilinos first, so that Trilinos users can see the benefit of this fix immediately. Once Trilinos tests pass, I'll add the patch to kokkos-kernels.
I believe in both cases the ++numValid; line needs to be within the if(offset != length) branch, right now it is executed unconditionally.
The text was updated successfully, but these errors were encountered: