Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

No messages when using MPI_Init_thread #54

Closed
ducrotv opened this issue Aug 30, 2023 · 0 comments
Closed

No messages when using MPI_Init_thread #54

ducrotv opened this issue Aug 30, 2023 · 0 comments

Comments

@ducrotv
Copy link
Contributor

ducrotv commented Aug 30, 2023

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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants