change MPI init to support to MPI_THREAD_MULTIPLE

This commit is contained in:
Qiwei Ye 2016-02-17 14:14:43 +09:00
Родитель a3cafdc8a3
Коммит 27164a64ae
1 изменённых файлов: 3 добавлений и 1 удалений

Просмотреть файл

@ -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)