LAM/MPI logo

LAM/MPI General User's Mailing List Archives

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

From: James Fang (cf8e_at_[hidden])
Date: 2004-04-18 14:29:54


Hi

Can anyone give me an example of how MPI_INFO may be used to specify how
where the spawned the processes will be launched on a cluster? I am using
the codes below, but it doesn't have any effect and it doesn't generate any
error message, so I don't know if I am doing anything wrong or not. Thanks
a bunch.

James

int nnodes = 8;
int *errcodes;

errcodes = (int *) malloc(sizeof(int) * nnodes);
memset(errcodes, -1, nnodes);

MPI_Comm_set_errhandler(MPI_COMM_WORLD, MPI_ERRORS_RETURN);

MPI_Info info;
MPI_Info_create (&info);
MPI_Info_set (info, "lam_spawn_sched_round_robin", "n2");
MPI_Comm_spawn(worker_program, MPI_ARGV_NULL, 5, MPI_INFO_NULL, 3,
MPI_COMM_WORLD, &everyone, errcodes);