Skip to content
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

Adapt to P4est_jll v2.8 with MPI support #45

Merged
merged 11 commits into from
Feb 3, 2022

Conversation

lchristm
Copy link
Member

  • New p4est library requires new bindings, thus the artifacts were adjusted
  • The build.jl script automatically includes the MPI library provided by
    MPI.jl when re-generating bindings for P4est_jll
  • The README was updated accordingly
  • The tutorial in the README uses a proper MPI communicator now because
    the previously used function sc_MPI_Comm is only defined if
    p4est is compiled without MPI support
  • The point above also implies that this is a breaking change, hence
    the version number was changed as well

Depends on JuliaPackaging/Yggdrasil#4324 and trixi-framework/P4est_jll_bindings#4.

The pre-generated bindings artifact should be attached to a new release of the P4est_jll_bindings repository after the PR there has been merged, please make sure that the links in the Artifacts.toml files in this PR here match that release after it's been made.

lchristm and others added 4 commits January 27, 2022 13:15
- New p4est library requires new bindings, thus the artifacts were adjusted
- The build.jl script automatically includes the MPI library provided by
  MPI.jl when re-generating bindings for P4est_jll
- The README was updated accordingly
- The tutorial in the README uses a proper MPI communicator now because
  the previously used function `sc_MPI_Comm` is only defined if
  p4est is compiled without MPI support
- The point above also implies that this is a breaking change, hence
  the version number was changed as well
@lchristm lchristm requested a review from sloede January 28, 2022 10:00
Copy link
Member

@sloede sloede left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Overall LGTM, thanks! A few minor edits/suggestions only. Please also ping Hendrik once you re-request my review.

Project.toml Outdated Show resolved Hide resolved
README.md Outdated Show resolved Hide resolved
Co-authored-by: Michael Schlottke-Lakemper <[email protected]>
@lchristm lchristm requested review from sloede and ranocha January 28, 2022 11:45
Copy link
Member

@sloede sloede left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM - once the remaining comment is resolved & @ranocha approves, this can be merged imho.

Copy link
Member

@ranocha ranocha left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice 👍 I just have a few minor comments. Please ping @sloede and feel free to merge after resolving them.

README.md Outdated Show resolved Hide resolved
README.md Outdated Show resolved Hide resolved
README.md Outdated Show resolved Hide resolved
@codecov
Copy link

codecov bot commented Jan 31, 2022

Codecov Report

Merging #45 (40d2220) into main (e5d9a44) will increase coverage by 100.00%.
The diff coverage is 100.00%.

Impacted file tree graph

@@             Coverage Diff             @@
##           main       #45        +/-   ##
===========================================
+ Coverage      0   100.00%   +100.00%     
===========================================
  Files         0         1         +1     
  Lines         0         1         +1     
===========================================
+ Hits          0         1         +1     
Flag Coverage Δ
unittests 100.00% <100.00%> (?)

Flags with carried forward coverage won't be shown. Click here to find out more.

Impacted Files Coverage Δ
src/P4est.jl 100.00% <100.00%> (ø)

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update e5d9a44...40d2220. Read the comment docs.

@lchristm
Copy link
Member Author

@sloede I added a function to check if the underlying p4est library uses MPI (b1021cf) as we discussed in trixi-framework/Trixi.jl#977 (comment).

@lchristm lchristm requested a review from sloede January 31, 2022 08:00
README.md Outdated Show resolved Hide resolved
This reverts commit 1434813.
sloede
sloede previously approved these changes Jan 31, 2022
Copy link
Member

@sloede sloede left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, thanks!

src/P4est.jl Show resolved Hide resolved
@ranocha ranocha requested a review from sloede January 31, 2022 13:34
Copy link
Member

@sloede sloede left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM! Thanks a lot for the hard work on this!

@sloede sloede merged commit 0d1ed91 into trixi-framework:main Feb 3, 2022
@lchristm lchristm deleted the p4est_jll-mpi-support branch February 4, 2022 15:30
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.

3 participants