diff --git a/ompi/runtime/ompi_mpi_init.c b/ompi/runtime/ompi_mpi_init.c index 8f70ba3784..89e75a8d81 100644 --- a/ompi/runtime/ompi_mpi_init.c +++ b/ompi/runtime/ompi_mpi_init.c @@ -544,8 +544,8 @@ int ompi_mpi_init(int argc, char **argv, int requested, int *provided) ompi_mpi_thread_multiple = (ompi_mpi_thread_provided == MPI_THREAD_MULTIPLE); - if (OMPI_ENABLE_PROGRESS_THREADS == 1 || - OMPI_ENABLE_MPI_THREADS == 1) { + if ((OMPI_ENABLE_PROGRESS_THREADS == 1) || + (*provided != MPI_THREAD_SINGLE)) { opal_set_using_threads(true); }