Skip to content

MPI_Ialltoallw, MPI_BOTTOM, and struct datatype with absolute addresses #9650

@dalcinl

Description

@dalcinl

Thank you for taking the time to submit an issue!

Background information

What version of Open MPI are you using? (e.g., v3.0.5, v4.0.2, git branch name and hash, etc.)

Open MPI v4.1.0

Describe how Open MPI was installed (e.g., from a source/distribution tarball, from a git clone, from an operating system distribution package, etc.)

System RPM package.

Please describe the system on which you are running

  • Operating system/version: Fedora 34
  • Computer hardware: x86_64
  • Network type: isolated

Details of the problem

Using MPI_Ialltoallw() with MPI_BOTTOM and struct datatypes with absolute addresses do not produce the expected results. Note however that the same case with blocking MPI_Alltoallw() works as expected.

To reproduce, please run the attached example (please rename to remove the bogus .txt extension) ompi-ialltoallw-bottom.c.txt

$ mpicc ompi-ialltoallw-bottom.c

$ ./a.out 
a.out: ompi-ialltoallw-bottom.c:40: main: Assertion `recvbuf[0] == 42' failed.
[kw61149:626796] *** Process received signal ***
[kw61149:626796] Signal: Aborted (6)
[kw61149:626796] Signal code:  (-6)
[kw61149:626796] [ 0] /lib64/libpthread.so.0(+0x13a20)[0x7f0683cdea20]
[kw61149:626796] [ 1] /lib64/libc.so.6(gsignal+0x142)[0x7f0683b392a2]
[kw61149:626796] [ 2] /lib64/libc.so.6(abort+0x116)[0x7f0683b228a4]
[kw61149:626796] [ 3] /lib64/libc.so.6(+0x26789)[0x7f0683b22789]
[kw61149:626796] [ 4] /lib64/libc.so.6(+0x35a16)[0x7f0683b31a16]
[kw61149:626796] [ 5] ./a.out[0x401356]
[kw61149:626796] [ 6] /lib64/libc.so.6(__libc_start_main+0xd5)[0x7f0683b23b75]
[kw61149:626796] [ 7] ./a.out[0x4010fe]
[kw61149:626796] *** End of error message ***
Aborted (core dumped)

PS: I catched this problem after adding tests to mpi4py, all Open MPI builds failed [logs].

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions