LAM/MPI logo

LAM/MPI General User's Mailing List Archives

  |   Home   |   Download   |   Documentation   |   FAQ   |   all just in this list

From: Brian Barrett (brbarret_at_[hidden])
Date: 2005-02-01 21:30:50


On Feb 1, 2005, at 8:43 PM, Kumar. wrote:

> MPI_Info infoobject;
> int errcode;
>
> MPI_Init(&argc,&argv);
> MPI_Comm_size(MPI_COMM_WORLD,&size);
> MPI_Comm_rank(MPI_COMM_WORLD,&myrank);
> MPI_Info_create(&infoobject);
> MPI_Info_set(infoobject,key,schema);
>
> MPI_Comm_spawn("hello",MPI_ARGV_NULL,1,infoobject,0,MPI_COMM_WORLD,&int
> ercommunicator,&errcode);

Your problem is exactly as LAM tried to report. The infoobject
argument in your call to MPI_Comm_spawn is invalid. An MPI_Info is a
handle to an info object. You have to call MPI_Info_create on the
object before you can use it as an argument to MPI_Comm_spawn.

Of course, since you don't seem to use the infoobject to pass any
information into MPI_Comm_spawn, you might want to just pass the
constant MPI_INFO_NULL instead of an empty info object.

Hope this helps,

Brian

-- 
   Brian Barrett
   LAM/MPI developer and all around nice guy
   Have an LAM/MPI day: http://www.lam-mpi.org/