On Aug 9, 2005, at 10:29 AM, Jim Lasc wrote:
> I made some easy code to connect a server to a client.
> It works perfectly as I expected when I use a "hardcoded" name (which
> I receive from the server).
> However, when I use exactly the same code (except the MPI_Lookup_name
> in the client) it doesn't works anymore.
> All I do is comment out A or B.
> am I doing something wrong ?
You have to use MPI's lookup function (MPI_LOOKUP_NAME) -- you cannot
supply your own name. Specifically, the name that you publish/lookup
is your name -- it can be whatever you want. The name that is returned
by OPEN_PORT and LOOKUP_NAME is a system-defined name -- you can't
choose what it will be (and it may be different in each run).
It looks like you are using MPICH, however. You should probably direct
MPICH-related questions to their discussion list.
Good luck!
--
{+} Jeff Squyres
{+} jsquyres_at_[hidden]
{+} http://www.lam-mpi.org/
|