The intent of the --prefix option (or using the full path name to mpirun) was exactly for the purpose of not requiring changes to the .bashrc.
Can you run with "--mca plm_base_verbose 100" on your command line? This will show us the exact rsh/ssh command line that is being executed -- it might shed some light on what is going on here. For example:
mpirun --mca plm_base_verbose 100 --host A,B hostname
On Feb 27, 2012, at 10:41 AM, yanyg_at_[hidden] wrote:
> I have tried to run ring_c example test from a bash script. In this
> bash script, I setup PATH and LD_LIBRARY_PATH(I donot want to
> disturb ~/.bashrc, etc), then use a full path of mpirun to invoke mpi
> processes, the mpirun and orted are both on the PATH. However,
> from the Open MPI message, orted was not found, to me, it was
> not found only on slave nodes. Then I tried to set the --prefix or -x
> PATH -x LD_LIBRARY_PATH to hope these envars passed to
> slave nodes, but it turned out they are not forwarded to slave
> On the other hand, if I set the same PATH and
> LD_LIBRARY_PATH in ~/.bashrc which shared by all nodes,
> mpirun from bash script runs fine and orted could be found. This is
> easy to understand though, but I realy do not want to change
> It seems the non-interactive bash shell does not pass envars to
> slave nodes.
> Any comments and solutions?
> users mailing list
For corporate legal information go to: http://www.cisco.com/web/about/doing_business/legal/cri/