cea-hpc / wi4mpi

Wrapper interface for MPI
BSD 3-Clause "New" or "Revised" License
80 stars 15 forks source link

No messages when using MPI_Init_thread #54

Closed ducrotv closed 9 months ago

ducrotv commented 1 year ago

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