Skip to content

Commit cd35c49

Browse files
authored
Merge pull request #4826 from artpol84/modex/rm_thr_level
ompi: ompi_mpi_init(): do not export threading level to modex.
2 parents c24a303 + b601dd5 commit cd35c49

File tree

1 file changed

+0
-16
lines changed

1 file changed

+0
-16
lines changed

ompi/runtime/ompi_mpi_init.c

Lines changed: 0 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -386,10 +386,6 @@ int ompi_mpi_init(int argc, char **argv, int requested, int *provided)
386386

387387
OMPI_TIMING_INIT(32);
388388

389-
/* bitflag of the thread level support provided. To be used
390-
* for the modex in order to work in heterogeneous environments. */
391-
uint8_t threadlevel_bf;
392-
393389
ompi_hook_base_mpi_init_top(argc, argv, requested, provided);
394390

395391
/* 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)
554550
goto error;
555551
}
556552

557-
/* determine the bitflag belonging to the threadlevel_support provided */
558-
memset ( &threadlevel_bf, 0, sizeof(uint8_t));
559-
OMPI_THREADLEVEL_SET_BITFLAG ( ompi_mpi_thread_provided, threadlevel_bf );
560-
561-
/* add this bitflag to the modex */
562-
OPAL_MODEX_SEND_STRING(ret, OPAL_PMIX_GLOBAL,
563-
"MPI_THREAD_LEVEL", &threadlevel_bf, sizeof(uint8_t));
564-
if (OPAL_SUCCESS != ret) {
565-
error = "ompi_mpi_init: modex send thread level";
566-
goto error;
567-
}
568-
569553
/* initialize datatypes. This step should be done early as it will
570554
* create the local convertor and local arch used in the proc
571555
* init.

0 commit comments

Comments
 (0)