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:
parent
3730ae1efb
commit
2659c407c4
1 changed files with 1 additions and 1 deletions
|
@ -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 {
|
||||
|
|
Loading…
Add table
Reference in a new issue