1
0
Fork 0
mirror of https://github.com/sockspls/badfish synced 2025-07-11 19:49:14 +00:00

Fix segfault.

the wrong data type was passed to an MPI call, leading to occasional segfaults. This patch fixes this.

No functional change.
This commit is contained in:
Joost VandeVondele 2018-12-02 20:22:18 +01:00 committed by Stéphane Nicolet
parent 3730ae1efb
commit 2659c407c4

View file

@ -127,7 +127,7 @@ bool getline(std::istream& input, std::string& str) {
// Some MPI implementations use busy-wait pooling, while we need yielding
static MPI_Request reqInput = MPI_REQUEST_NULL;
MPI_Ibcast(&size, 1, MPI_UNSIGNED_LONG, 0, InputComm, &reqInput);
MPI_Ibcast(&size, 1, MPI_INT, 0, InputComm, &reqInput);
if (is_root())
MPI_Wait(&reqInput, MPI_STATUS_IGNORE);
else {