none
name publishing with two differents applications. RRS feed

  • Question

  • 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...


    Monday, November 17, 2014 3:50 PM

All replies

  • Hi Bruno,

    Unfortunately we do not support MPI name publishing at the moment. MPI_Publish_name should have returned an error. It currently does not, unfortunately.

    Let us know if your application environment does not have any easy way to get the port from the server to the client. There might be some workaround by having the server open the port using a well-known port and you can re-construct the port from the client side. However, this would require that you pick a fixed TCP port for the server.

    Monday, November 24, 2014 7:44 PM