The MPI_Init_thread function does not output the same message as MPI_Init (i.e. You are using Wi4MPI-X.X.X with the mode ... From ... To ... ).
I provide here a small example of this issue :
$ cat init_threads.c
#include <mpi.h>
int main(int argc,char **argv)
{
int prov;
if( argc>1 )
{
MPI_Init(&argc,&argv);
}
else
{
MPI_Init_thread(&argc,&argv,MPI_THREAD_SINGLE,&prov);
}
MPI_Finalize();
}
$ mpicc init_threads.c -o init_threads
$ ./init_thread
$ ./init_thread no_threads
You are using Wi4MPI-3.6.0 with the mode interface From Interface To OpenMPI-4.1.4
The MPI_Init_thread function does not output the same message as MPI_Init (i.e. You are using Wi4MPI-X.X.X with the mode ... From ... To ... ). I provide here a small example of this issue :