From 2659c407c4636ba92db9917ab1d8146cc2536707 Mon Sep 17 00:00:00 2001 From: Joost VandeVondele Date: Sun, 2 Dec 2018 20:22:18 +0100 Subject: [PATCH] Fix segfault. the wrong data type was passed to an MPI call, leading to occasional segfaults. This patch fixes this. No functional change. --- src/cluster.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/cluster.cpp b/src/cluster.cpp index c6290a27..6900844a 100644 --- a/src/cluster.cpp +++ b/src/cluster.cpp @@ -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 {