-
-
Notifications
You must be signed in to change notification settings - Fork 55
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
Fix send_by_ref by modelling it like get_by_ref. #791
base: main
Are you sure you want to change the base?
Conversation
This fix also fixes the last open testsuite failure get_static_array.f90. It was tested with mpich 4.1.2, openmpi 4.1.5 and intel mpi 2021.13. |
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.
@vehre a few questions, please see my comments. Sorry this sat for so long.
@vehre do you know what's going on with the build errors? I don't have time to take a look at what it will take to resolve them at the moment. |
I'll take a look tomorrow. |
81b8891
to
a8e1e17
Compare
Make send_by_ref stable and its structure the same as get_by_ref. Add a "dummy" component into the test's derived type to figure incorrect offset computation.
8ad7fa0
to
ce20c6e
Compare
ce20c6e
to
6e77eb8
Compare
@zbeekman Sorry for all the email noise, but I had to figure the CIs. I think, I got them as usable as possible now. Fact is:
This means we are stuck with Intel's mpi on Linux and Windows. But both of these CIs run. With more recent mpi versions on Linux all tests pass on my system. |
@vehre what an annoying set of bugs, thanks for fixing this! I might test out reverting Ubuntu to 22.04 to see if it's possible to test with another mpi as well. If it doesn't work I will keep what you have here. |
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.
Looks good to me! I might try to convince CI to run using Ubuntu 22.04 on linux, but if I don't have success I will just merge what's here and call it good.
8ab1fff
to
44678fd
Compare
44678fd
to
f8988a0
Compare
@zbeekman I have added a workflow for ubuntu-22.04 for mpich and impi. Openmpi is also b0rken on ubuntu 22.04. |
Summary of changes
Send_by_ref was working as expected for static arrays and arrays of higher rank.
Rationale for changes
Make send_by_ref to work for static arrays and arrays of higher rank. This fixes #654.
Additional info and certifications
This pull request (PR) is a:
I certify that
OpenCoarrays developer a chance to review my proposed code
be introduced)
Code coverage data