change MPI init to support to MPI_THREAD_MULTIPLE
This commit is contained in:
Родитель
a3cafdc8a3
Коммит
27164a64ae
|
@ -73,7 +73,9 @@ class MPIWrapper
|
|||
|
||||
int argc = 0;
|
||||
char **argv = NULL;
|
||||
int requiredThreadLevelSupport = MPI_THREAD_SERIALIZED;
|
||||
// TODO the MPI_THREAD_MULTIPLE support is needed by project Multiverso.
|
||||
// please make sure using the MSMPIv7 (or openmpi-1.8) and above.
|
||||
int requiredThreadLevelSupport = MPI_THREAD_MULTIPLE;
|
||||
int provided;
|
||||
int ret = MPI_Init_thread(&argc, &argv, requiredThreadLevelSupport, &provided);
|
||||
if (provided != requiredThreadLevelSupport)
|
||||
|
|
Загрузка…
Ссылка в новой задаче