We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c63171a commit ccef45dCopy full SHA for ccef45d
1 file changed
src/MPITransceiver.cpp
@@ -16,6 +16,9 @@ MPITransceiver::MPITransceiver()
16
"Please use a thread-safe MPI implementation.");
17
}
18
} else {
19
+ MPI_Query_thread(&flag);
20
+ if(flag != MPI_THREAD_MULTIPLE)
21
+ throw(std::logic_error("MPI had been initialized incorrectly: not MPI_THREAD_MULTIPLE"));
22
std::cerr << "MPI already initialized\n";
23
24
int nranks, rank;
0 commit comments