1
1

Merge pull request #4826 from artpol84/modex/rm_thr_level

ompi: ompi_mpi_init(): do not export threading level to modex.
Этот коммит содержится в:
Artem Polyakov 2018-02-17 11:29:45 -08:00 коммит произвёл GitHub
родитель c24a303cb2 b601dd504a
Коммит cd35c493da
Не найден ключ, соответствующий данной подписи
Идентификатор ключа GPG: 4AEE18F83AFDEB23

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

@ -386,10 +386,6 @@ int ompi_mpi_init(int argc, char **argv, int requested, int *provided)
OMPI_TIMING_INIT(32); OMPI_TIMING_INIT(32);
/* bitflag of the thread level support provided. To be used
* for the modex in order to work in heterogeneous environments. */
uint8_t threadlevel_bf;
ompi_hook_base_mpi_init_top(argc, argv, requested, provided); ompi_hook_base_mpi_init_top(argc, argv, requested, provided);
/* Ensure that we were not already initialized or finalized. /* Ensure that we were not already initialized or finalized.
@ -554,18 +550,6 @@ int ompi_mpi_init(int argc, char **argv, int requested, int *provided)
goto error; goto error;
} }
/* determine the bitflag belonging to the threadlevel_support provided */
memset ( &threadlevel_bf, 0, sizeof(uint8_t));
OMPI_THREADLEVEL_SET_BITFLAG ( ompi_mpi_thread_provided, threadlevel_bf );
/* add this bitflag to the modex */
OPAL_MODEX_SEND_STRING(ret, OPAL_PMIX_GLOBAL,
"MPI_THREAD_LEVEL", &threadlevel_bf, sizeof(uint8_t));
if (OPAL_SUCCESS != ret) {
error = "ompi_mpi_init: modex send thread level";
goto error;
}
/* initialize datatypes. This step should be done early as it will /* initialize datatypes. This step should be done early as it will
* create the local convertor and local arch used in the proc * create the local convertor and local arch used in the proc
* init. * init.