Skip to content

Fix out-of-bounds write in classical AMG restrictResidual - #382

Open
stevenliuyi wants to merge 1 commit into
NVIDIA:mainfrom
stevenliuyi:main
Open

stevenliuyi wants to merge 1 commit into
NVIDIA:mainfrom
stevenliuyi:main

Conversation

@stevenliuyi

Copy link
Copy Markdown

Fixes #381.

In multi-GPU classical AMG, the coarse residual vector rr in restrictResidual() is not always big enough: the product R * r writes one entry per row of R, and R can have more rows than the halo offsets used to size rr, so every V-cycle writes past the end of rr. This change makes rr at least as long as R has rows.

Tested with the program from #381.

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

Successfully merging this pull request may close these issues.

[Issue] Solving the same system on multi GPUs repeatedly gives different results

1 participant