Initial commit of a simple GPU-friendly Gauss-Seidel Red-Black smoother#254
Closed
Initial commit of a simple GPU-friendly Gauss-Seidel Red-Black smoother#254
Conversation
Added perBC! and a slight adjustment of the function call for GPU. Now using GaussSeidelRB! as the MultiLevelPoisson smoother! passes all tests for CPU and GPU. GaussSeidelRB! doesn't pass the tests for Poisson because it takes more iterations to converge than pcg! as a stand-alone solver, but who cares?
Member
|
To do
|
Member
|
Performance with RBGS is similar to PCG, at least for middle size cases. I haven't touched the solver's tolerance / number of iterations, so maybe this is worth investigating. |
Member
Author
|
Thanks. That seems promising. I'll add a tolerance check and do some fine tuning. |
Member
Author
|
Replaced by #276 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This is an initial implementation of a Gauss-Seidel smoother which runs on GPUs by alternating the update in a checkerboard pattern.
PCG!to things like reduced precision. It might improve the AD with respect to body position, but I haven't tested it.@vecloopfrom BiotBCs and save a vector of the red/black cells, which could be faster.it=6times without residual checks. This is fast, but might be wasting effort or require more V-cycles.