Per contribution from Pascal Deveze of Bull: move opal_set_using_threads earlier in MPI_Init (before datatype init) so the value gets set in time to be properly used.
Этот коммит содержится в:
родитель
3a14c8eeff
Коммит
06e49d0e92
@ -512,6 +512,13 @@ int ompi_mpi_init(int argc, char **argv, int requested, int *provided)
|
||||
}
|
||||
#endif
|
||||
|
||||
/* If thread support was enabled, then setup OPAL to allow for
|
||||
them. */
|
||||
if ((OPAL_ENABLE_PROGRESS_THREADS == 1) ||
|
||||
(*provided != MPI_THREAD_SINGLE)) {
|
||||
opal_set_using_threads(true);
|
||||
}
|
||||
|
||||
/* initialize datatypes. This step should be done early as it will
|
||||
* create the local convertor and local arch used in the proc
|
||||
* init.
|
||||
@ -724,13 +731,6 @@ int ompi_mpi_init(int argc, char **argv, int requested, int *provided)
|
||||
goto error;
|
||||
}
|
||||
|
||||
/* If thread support was enabled, then setup OPAL to allow for
|
||||
them. */
|
||||
if ((OPAL_ENABLE_PROGRESS_THREADS == 1) ||
|
||||
(*provided != MPI_THREAD_SINGLE)) {
|
||||
opal_set_using_threads(true);
|
||||
}
|
||||
|
||||
/* start PML/BTL's */
|
||||
ret = MCA_PML_CALL(enable(true));
|
||||
if( OMPI_SUCCESS != ret ) {
|
||||
|
Загрузка…
x
Ссылка в новой задаче
Block a user