-
Notifications
You must be signed in to change notification settings - Fork 114
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
Threading for periodic FDSBP flux differencing #1029
Threading for periodic FDSBP flux differencing #1029
Conversation
reset du remove comment
This reverts commit ff4bab4.
Codecov Report
@@ Coverage Diff @@
## main #1029 +/- ##
==========================================
- Coverage 93.99% 93.91% -0.08%
==========================================
Files 291 291
Lines 22518 22550 +32
==========================================
+ Hits 21164 21177 +13
- Misses 1354 1373 +19
Flags with carried forward coverage won't be shown. Click here to find out more.
Continue to review full report at Codecov.
|
The most recent changes invoke existing On one thread rhs! 246 1.32s 97.8% 5.37ms 402KiB 13.4% 1.63KiB
volume integral 246 1.29s 95.7% 5.26ms 34.6KiB 1.15% 144B On 8 threads with rhs! 246 370ms 94.1% 1.51ms 629KiB 19.5% 2.56KiB
volume integral 246 358ms 91.0% 1.45ms 150KiB 4.64% 624B This is about a 4x speedup, which we'd expect (8x speedup from threading but 1/2 efficiency due to not exploiting symmetry). |
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.
Thanks for this PR! I just have some minor comments.
Co-authored-by: Hendrik Ranocha <ranocha@users.noreply.github.com>
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.
Just a minor comment from my side (which can be resolved or just left as it is). Otherwise it LGTM
Hopefully tests should pass this time |
Pull request was closed
We do not collect coverage info for threaded tests: Line 37 in 5986c2b
Collecting coverage info with multiple threads is awfully slow, see JuliaLang/julia#36142... From my point of view, it's okay to merge this as it is, even with reduced coverage info (since we know that we test the new code paths, just without coverage due to the issue mentioned above). What do you think, @sloede? |
@sloede are you OK if I merge this manually? The coverage drop is due to threading tests not being run w/coverage. |
Trixi parallelizes over elements, but periodic FDSBP solvers are "single element" and can't take advantage of threading. This implements a naive threading (without exploiting symmetry or skew-symmetry to reduce total flux evaluations). which gives about 4x speedup on my 8-core machine.
On
main
On this PR