Improvement: Use sc_MPI_Sendrecv in vector handler - #2369
Conversation
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #2369 +/- ##
=======================================
Coverage 82.28% 82.28%
=======================================
Files 125 125
Lines 20701 20701
=======================================
Hits 17033 17033
Misses 3668 3668 ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
sandro-elsweijer
left a comment
There was a problem hiding this comment.
Hey @tokito-99,
thank you again for your contribution!
Is there a specific reason why you deactivated the shallow clone of libsc?
Apart from that everything looks good
Co-authored-by: Sandro Elsweijer <49643115+sandro-elsweijer@users.noreply.github.com>
spenke91
left a comment
There was a problem hiding this comment.
Thanks a lot @tokito-99 for your contribution to t8code! 🙂
Regarding the failing CI, my guess is that we should use the latest commit of the SC library, or at least not one from a "sub-tree" 🤔 I'd say it's definitely worth a shot 🤞
Co-authored-by: spenke91 <thomas.spenke@dlr.de>
|
@spenke91 Thanks for the suggestion :) We are green here 💯 |
spenke91
left a comment
There was a problem hiding this comment.
Looks good, thanks again! 🥳
|
@tokito-99 I think we are ready to merge, but @sandro-elsweijer has click "approve" once because he requested changes earlier. He will do so on Monday as he is on vacation today. |
|
@tokito-99 In the meantime, let me use the opportunity to ask you: What are your plans and goals you are you using t8code for? 🙂 Here's an excerpt from the inviation info:
If you happen to already have a Matrix account, you can also use that one. P.S.: We only switched to Matrix very recently, so please excuse some possible "technical friction" :-) |
Describe your changes here:
Closes #2332
This PR replaces the two direct calls to
MPI_Sendrecvint8_vector_handler::sendrecvwith the correspondingsc_MPI_Sendrecvwrapper.The first call exchanges the sizes of the packed messages, while the second call exchanges the packed message data. No communication logic, message parameters, or buffer handling is changed.
The pinned libsc revision is updated to include the
sc_MPI_Sendrecvimplementation introduced by cburstedde/libsc#237.Testing performed locally:
Result:
The existing
t8_gtest_data_pack_paralleltest exercises the modified send-receive implementation.My BSD authorization statement is already present.
All these boxes must be checked by the AUTHOR before requesting review:
Documentation:,Bugfix:,Feature:,Improvement:orOther:.All these boxes must be checked by the REVIEWERS before merging the pull request:
As a reviewer please read through all the code lines and make sure that the code is fully understood, bug free, well-documented and well-structured.
General
Tests
If the Pull request introduces code that is not covered by the github action (for example coupling with a new library):
Scripts and Wiki
scripts/internal/find_all_source_files.shto check the indentation of these files.License
doc/(or already has one).