-
Notifications
You must be signed in to change notification settings - Fork 876
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
Fortran: MPI_Alltoallw/MPI_Ialltoallw using MPI_IN_PLACE do not ignore sendtypes #5459
Comments
thanks for the bug report ! do you want to issue a PR by yourself ? |
Thinking about a potential solution, I'm not quite sure why the conversions of |
there is no conversion when If you build Open MPI with 8 bytes integer ( note you also need to fix you will also need to apply similar fixes to the persistent collectives extensions in last but not least, your commits have to be signed-off in order to be accepted, |
Ah, OK, I've missed that there are multiple definitions of Regarding |
I didn't see a pull request go by -- did this get fixed? |
Sorry -- I should clarify: we're making the v2.1.4rc in the immediate future (probably Monday). It will likely be the last release in the v2.1.x series. If we get a fix for this right quick, we might be able to include it in v2.1.4. More releases are coming shortly after that (see https://github.com/open-mpi/ompi/milestones?direction=asc&sort=due_date&state=open), so the sooner we get a PR for this, the better. |
@jsquyres I haven't found the time yet to work on a PR. And it is very unlikely that it will happen over the weekend (which starts for me in a couple of minutes)... |
No worries -- have a great weekend! (if this missed the v2.1.4 release, that's not a tragedy -- we can always slot it in the upcoming v3.0.x / v3.1.x / v4.0.0 releases) |
@geimer Were you ever able to make progress on this, perchance? |
@jsquyres I got distracted by vacation ;-) And now I'm behind schedule on my primary project... In other words: I don't believe I can find the time to look into this in the near future. Sorry! |
@geimer What is the status of this issue? |
@gpaulsen The state on my side is still unchanged: I couldn't find time to work on this. Sorry. Note that I hit this issue just by accident - and since I'm a C/C++ programmer, Fortran stuff gets very low priority on my TODO list. That is, if you want to see this fixed anytime soon, I suggest that someone else takes care of it. |
- ignore sendcounts, sendispls and sendtypes arguments when MPI_IN_PLACE is used - use the right size when an inter-communicator is used. Thanks Markus Geimer for reporting this. Refs. open-mpi#5459 Signed-off-by: Gilles Gouaillardet <gilles@rist.or.jp>
@geimer i fixed this in #6813. Meanwhile, you can manually download and apply the patch at https://github.com/open-mpi/ompi/pull/6813.patch |
- ignore sendcounts, sendispls and sendtypes arguments when MPI_IN_PLACE is used - use the right size when an inter-communicator is used. Thanks Markus Geimer for reporting this. Refs. open-mpi#5459 Signed-off-by: Gilles Gouaillardet <gilles@rist.or.jp>
note to myself : |
- ignore sendcounts, sendispls and sendtypes arguments when MPI_IN_PLACE is used - use the right size when an inter-communicator is used. Thanks Markus Geimer for reporting this. Refs. open-mpi#5459 Signed-off-by: Gilles Gouaillardet <gilles@rist.or.jp> (cherry picked from commit open-mpi/ompi@cdaed89)
@ggouaillardet Hi. In #6813 (comment) (master only, not yet backported to v4.1.x, v4.0.x, or earlier), you mentioned that this is a bigger issue than you thought, and that you were working on a PR for release branches, but that it kept growing. Could you summarize the status in this issue? Cherry-picking 6813 looks straight forward enough, but it sounds like that's just the tip of the iceberg. Thoughts? |
The commit can be backported, but does not address all the issues described in my previous comments:
|
fixed in v4.0.x via #6838. closing since we're not going to patch v3.1.x and v3.0.x |
According to the standard,
MPI_Alltoallw
andMPI_Ialltoallw
should ignore thesendcounts
,sdispls
, andsendtypes
arguments ifsendbuf
isMPI_IN_PLACE
. Open MPI (tested with 3.0.0) takes this into account forsendcounts
andsdispls
, but not forsendtypes
. This leads to a segmentation fault with the following test code:It seems that the loops at
ompi/ompi/mpi/fortran/mpif-h/alltoallw_f.c
Lines 95 to 99 in e172849
ompi/ompi/mpi/fortran/mpif-h/ialltoallw_f.c
Lines 96 to 100 in e172849
The text was updated successfully, but these errors were encountered: