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-03-18 16:50:39


Hi
I am using a cluster that consists of 4 nodes, i am trying to do a
manager/worker program in which the workers monitor the system usage of the
manager. Mainly, one node would be the manager, the 3 nodes would each
produce a worker. But when I tried to spawn workers, it seems that they
get spawned sporadically, for example, if I spawn 4 workers, node 0 might
spawn 2 and node 1 might spawn 1, and then the program stops.
I consulted the following link

http://www.lam-mpi.org/MailArchives/lam/msg05776.php

but lam_spawn_sched_round_robin doesn't seem to have any real effect, since
I obtain the same result regardless to what node i specify
lam_spawn_sched_round_robin as.

Does anyone know how to get around this?

I've included my some of my codes below:

MPI_Info info;
MPI_Info_create (&info);
MPI_Info_set (info, "lam_spawn_sched_round_robin", "n3");
MPI_Comm_spawn(worker_program, MPI_ARGV_NULL, 3, info, 0, MPI_COMM_SELF,
&everyone, &err);

by the way, another question is, why does root always have to be zero, it
seems that I always get the error : MPI_Comm_spawn: invalid root (rank 0,
MPI_COMM_SELF).

Thank you in advance for helping out : -)

James