Commit 6778f48
committed
kokkos: waxpby argument order for decomposed case
In ref/ cg_solve.hpp, we have waxpby(one, r, beta, p, p)
In kokkos/ we had waxpby(beta, p, one, r, p)
These are algebraicly equivalent:
waxpby(alpha, x, beta, y, w) computes w = alpha*x + beta*y,
so ref/: p = 1*r + beta * p
kokkos/: p = beta*p + 1*r
However, p is length A.num_cols and includes ghost entries after
make_local_matrix, while r has only local rows. For mpi runs, when p is
the x argument it trips
y.local_size < x.local_size || w.local_size < x.local_size
This PR swaps the Kokkos arguments back to the ref ones, so
when p is extra long the check doesn't trip.
Signed-off-by: Carl Pearson <cwpears@sandia.gov>1 parent c1a9af0 commit 6778f48
1 file changed
Lines changed: 1 addition & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
159 | 159 | | |
160 | 160 | | |
161 | 161 | | |
162 | | - | |
| 162 | + | |
163 | 163 | | |
164 | 164 | | |
165 | 165 | | |
| |||
219 | 219 | | |
220 | 220 | | |
221 | 221 | | |
222 | | - | |
0 commit comments