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

Compilation error due to MPI_Waitall #32

Closed
adimanuwal opened this issue Jan 27, 2023 · 2 comments
Closed

Compilation error due to MPI_Waitall #32

adimanuwal opened this issue Jan 27, 2023 · 2 comments

Comments

@adimanuwal
Copy link

adimanuwal commented Jan 27, 2023

Firstly, thanks for producing this code. I encountered the following errors while compiling. How can this be fixed?

engine_strays.c: In function ‘engine_exchange_strays’:
engine_strays.c:275:7: error: ‘MPI_Waitall’ accessing 20 bytes in a region of size 0 [-Werror=stringop-overflow=]
275 | if (MPI_Waitall(e->nr_proxies, reqs_out, MPI_STATUSES_IGNORE) != MPI_SUCCESS)
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
engine_strays.c:275:7: note: referencing argument 3 of type ‘MPI_Status *’
In file included from /usr/include/x86_64-linux-gnu/mpich/mpi.h:977,
from engine_strays.c:27:
/usr/include/x86_64-linux-gnu/mpich/mpi_proto.h:592:5: note: in a call to function ‘MPI_Waitall’
592 | int MPI_Waitall(int count, MPI_Request array_of_requests[], MPI_Status array_of_statuses[])
| ^~~~~~~~~~~
engine_strays.c:538:9: error: ‘MPI_Waitall’ accessing 20 bytes in a region of size 0 [-Werror=stringop-overflow=]
538 | if (MPI_Waitall(5 * e->nr_proxies, reqs_out, MPI_STATUSES_IGNORE) !=
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
engine_strays.c:538:9: note: referencing argument 3 of type ‘MPI_Status *’
In file included from /usr/include/x86_64-linux-gnu/mpich/mpi.h:977,
from engine_strays.c:27:
/usr/include/x86_64-linux-gnu/mpich/mpi_proto.h:592:5: note: in a call to function ‘MPI_Waitall’
592 | int MPI_Waitall(int count, MPI_Request array_of_requests[], MPI_Status array_of_statuses[])

@MatthieuSchaller
Copy link
Member

Hi,

Yes, this is a known bug of mpich. See: https://github.com/pmodels/mpich/wiki/ABI-Change-Wishlist

You can bypass the issue by configuring SWIFT with --enable-compiler-warnings.

@adimanuwal
Copy link
Author

That was helpful. Thanks!

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

No branches or pull requests

2 participants