Hi, I want to run two differents applications and connect them with MPI_Comm_connect and MPI_Lookup_name.
I run mpiexec -n 1 master and mpiexec -n 4 slave
In the master I declare a name :
MPI_Open_port(MPI_INFO_NULL, port);
err = MPI_Publish_name("MY_NAME", MPI_INFO_NULL,port);
And in the slave I would like to connect to the master
MPI_Lookup_name("MY_NAME", MPI_INFO_NULL, port);
MPI_Comm_connect(port, info, 0, MPI_COMM_WORLD, &interComm);
But at the lookup line, I get the MPI error :"Invalid service name (see MPI_Publish_name), error stack: Lookup failed for service name MY_NAME"
I really appreciate some help...