LAM/MPI logo

LAM/MPI General User's Mailing List Archives

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

From: Karl Hahn (hahnk_at_[hidden])
Date: 2003-08-04 07:08:32


Hi,

is this a LAM problem or a ssh problem? Can anybody give a
hint?

I am running LAM with 2 nodes (at the moment, s21 and s21).
 From my .tcshrc:
setenv LAMRSH "ssh -x"

s22:~/r5>lamnodes
n0 s22:1:origin,this_node
n1 s21.xxx.de:1:

When I use 'ssh s21 -x <command>' it seems that .tcshrc
is executed on the other node before invoking the command
while .login is not. The program is in my $PATH (in .tcshrc)
so I don't have to be in the directory to start it.

s22:~/r5>ssh s21 -x prog
{echo from .tcshrc}
{Program starting}

When I try to start my program using mpirun the program
can not be found on node n1 (if I am not in the directory
where the program is located). The path to my program is
included in $PATH which should be the same on node n1
(man ssh tells me something different, but in my test
above .tcshrc is executed).

s22:~/r5>mpirun -c 2 prog
mpirun: cannot start prog on n1: No such file or directory

Why doesn't LAM's mpirun use my $PATH? Do I have to use
mpirun -c 2 /complete/path/to/my/program/which/can/be/very/long?
Is there a possibility to avoid that?

Bye,
Charlie