mirror of
https://github.com/sockspls/badfish
synced 2025-07-12 03:59:15 +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
|
// Some MPI implementations use busy-wait pooling, while we need yielding
|
||||||
static MPI_Request reqInput = MPI_REQUEST_NULL;
|
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())
|
if (is_root())
|
||||||
MPI_Wait(&reqInput, MPI_STATUS_IGNORE);
|
MPI_Wait(&reqInput, MPI_STATUS_IGNORE);
|
||||||
else {
|
else {
|
||||||
|
|
Loading…
Add table
Reference in a new issue