-
Notifications
You must be signed in to change notification settings - Fork 195
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
Vertically stretched grids for all topologies on CPUs and GPUs #1403
Merged
Conversation
This file contains 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
glwagner
approved these changes
Feb 26, 2021
(Periodic, Bounded, Bounded), | ||
(Bounded, Periodic, Bounded), | ||
(Bounded, Bounded, Bounded) | ||
] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🚀
Benchmarks!As mentioned in the docs, the Fourier-tridiagonal solver is theoretically faster for large problems. Raw numbers in all their glory below but to summarize:
Vertically stretched incompressible model benchmarksRaw benchmarks
CPU to GPU speedup
Incompressible model benchmarks (regular Rectilinear grid)Raw benchmarks
CPU to GPU speedup
Fourier-tridiagonal Poisson solver benchmarksRaw benchmarks
CPU to GPU speedup
Relative performance on the CPU
Relative performance on the GPU
FFT-based Poisson solverRaw benchmarks
CPU to GPU speedup
CPU relative performance
GPU relative performance
System info
|
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 PR completes the implementation of the vertically stretched grid (PR #1348) by supporting all topologies on the CPU and GPU.
Well, I think a batched tridiagonal solve in the vertical is only possible if the z dimension is
Bounded
, so "all topologies" only includes the four topologies with z beingBounded
.If the stretched dimension is periodic, then I think the system of linear equations is no longer tridiagonal (you get non-zero elements in the corner of the matrix). I vaguely recall @christophernhill mentioning that there may be a way around this?
I'm also going to bump v0.51.0 in this PR.
X-Ref: #586