LAM/MPI logo

LAM/MPI General User's Mailing List Archives

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

From: Bogdan Costescu (Bogdan.Costescu_at_[hidden])
Date: 2007-06-28 08:41:15


On Wed, 27 Jun 2007, Sam Steingold wrote:

> we have a cluster on which several people want to run their lam/mpi
> jobs as themselves. alas, this appears to be impossible.

Well, this appears to be impossible because of the special setup that
you have. Lots of clusters just allow people to submit jobs as
themselves and LAM/MPI runs fine like that :-)

> we have a daemon (run as lampi) who accepts "job requests" from
> individuals, queues them, and runs them using mpirun one by one.

LAM/MPI has the concept of sessions. Normally there is only one
session per user per node, meaning that there is one daemon per user
per node that can be launched; this daemon then takes care of all the
jobs started via mpirun by that user on the node. To have multiple
sessions, you need to either:
- start the daemons as different users and then run mpirun also as
these users
- start several daemons as a single user, but specify for each daemon
a different session suffix. Then mpirun would need to be run in an
environment which knows about the suffix of the session where it needs
to connect.

For running as different users (which seems to be what you want), you
could use LAM/MPI's mpiexec or create a script that does:
         lamboot
         mpirun
         lamhalt
and run mpiexec or this script with 'sudo -u <user> mpiexec ...'.

-- 
Bogdan Costescu
IWR - Interdisziplinaeres Zentrum fuer Wissenschaftliches Rechnen
Universitaet Heidelberg, INF 368, D-69120 Heidelberg, GERMANY
Telephone: +49 6221 54 8869, Telefax: +49 6221 54 8868
E-mail: Bogdan.Costescu_at_[hidden]