[OMPI users] Open MPI and env. variables (LD_LIBRARY_PATH and PATH) - complete and utter Open MPI / Linux noob

2009-08-02 Thread Tomislav Maric
Hello everyone, I'm trying to run an OpenFOAM simulation on two hosts on my home LAN. I've managed to make the hosts communicate via ssh without giving passwords as instructed on Open MPI web page. The problem with running mpirun is in the enviromental variables for the non interactive login bash

Re: [OMPI users] Open MPI and env. variables (LD_LIBRARY_PATH and PATH) - complete and utter Open MPI / Linux noob

2009-08-02 Thread Prasadcse Perera
Hi, One workaround is you can define PATH and LD_LIBRARY_PATH in your common .bashrc and have a resembling paths of installation in two nodes. This works for me nicely with my three node installation :). On Sat, Aug 1, 2009 at 5:25 PM, Tomislav Maric wrote: > Hello everyone, > > I'm trying to ru

Re: [OMPI users] Open MPI and env. variables (LD_LIBRARY_PATH and PATH) - complete and utter Open MPI / Linux noob

2009-08-02 Thread Tomislav Maric
Prasadcse Perera wrote: > Hi, > One workaround is you can define PATH and LD_LIBRARY_PATH in your common > .bashrc and have a resembling paths of installation in two nodes. This > works for me nicely with my three node installation :). > Thank you very much for the advice. Actually I'm running O

Re: [OMPI users] Open MPI and env. variables (LD_LIBRARY_PATH and PATH) - complete and utter Open MPI / Linux noob

2009-08-02 Thread Dominik Táborský
Hi Tomislav, I also had this issue. When you try to trace it, you'll find out that when you manually connect to a machine and immediately execute a command, it will inherit your environment, not the environment of the node. See: $ ssh node1 && echo $PATH This will echo the PATH on your computer,

Re: [OMPI users] Open MPI and env. variables (LD_LIBRARY_PATH and PATH) - complete and utter Open MPI / Linux noob

2009-08-02 Thread Prasadcse Perera
Hi, common bashrc meant if the /home is network mounted so ignore that I guess. Have you tried adding . $HOME/OpenFOAM/OpenFOAM-1.5.x/etc/bashrc to your ~/.bashrc on nodes ? This will append the configurations you need from the bashrc file located inside the directory. Prasad. On Sat, Aug 1, 2

Re: [OMPI users] Open MPI and env. variables (LD_LIBRARY_PATH and PATH) - complete and utter Open MPI / Linux noob

2009-08-02 Thread Prasadcse Perera
Hi, $HOME means your installation directory (some/path as you mentioned). On Sun, Aug 2, 2009 at 12:07 AM, Prasadcse Perera wrote: > Hi, > common bashrc meant if the /home is network mounted so ignore that I guess. > Have you tried adding > . $HOME/OpenFOAM/OpenFOAM-1.5.x/etc/bashrc to your ~/

Re: [OMPI users] Open MPI and env. variables (LD_LIBRARY_PATH and PATH) - complete and utter Open MPI / Linux noob

2009-08-02 Thread Tomislav Maric
Dominik Táborský wrote: > Hi Tomislav, > > I also had this issue. When you try to trace it, you'll find out that > when you manually connect to a machine and immediately execute a > command, it will inherit your environment, not the environment of the > node. See: > $ ssh node1 && echo $PATH > >

Re: [OMPI users] Open MPI and env. variables (LD_LIBRARY_PATH and PATH) - complete and utter Open MPI / Linux noob

2009-08-02 Thread Tomislav Maric
Prasadcse Perera wrote: > Hi, > common bashrc meant if the /home is network mounted so ignore that I > guess. Have you tried adding > . $HOME/OpenFOAM/OpenFOAM-1.5.x/etc/bashrc to your ~/.bashrc on nodes > ? This will append the configurations you need from the bashrc file > located inside the d

Re: [OMPI users] Open MPI and env. variables (LD_LIBRARY_PATH and PATH) - complete and utter Open MPI / Linux noob

2009-08-02 Thread Dominik Táborský
Hi, This is it: > slax@master$ ssh node1 'echo $PATH' > > gives me the reduced path on the slave node. I'm sorry, I was wrong. You typed it correctly. AFAIK, this command logs in your node but the PATH variable is still just as on your master. I had this issue and I solved it by editing the .ba

Re: [OMPI users] Open MPI and env. variables (LD_LIBRARY_PATH and PATH) - complete and utter Open MPI / Linux noob

2009-08-02 Thread Tomislav Maric
Dominik Táborský wrote: > Hi, > > This is it: >> slax@master$ ssh node1 'echo $PATH' >> >> gives me the reduced path on the slave node. > > I'm sorry, I was wrong. You typed it correctly. AFAIK, this command logs > in your node but the PATH variable is still just as on your master. I > had this

Re: [OMPI users] Open MPI and env. variables (LD_LIBRARY_PATH and PATH) - complete and utter Open MPI / Linux noob

2009-08-02 Thread Dominik Táborský
The .bashrc on your master is not run, therefore there are no echos. Let's revise once more so that we're sure we understand each other :-) On your master - on the computer you run "mpirun" - you put these 2 lines into your own .bashrc: export PATH=$PATH:/openMPI/bin export LD_RUN_FLAG=$LD_LIBR

Re: [OMPI users] Open MPI and env. variables (LD_LIBRARY_PATH and PATH) - complete and utter Open MPI / Linux noob

2009-08-02 Thread Tomislav Maric
Dominik Táborský wrote: > The .bashrc on your master is not run, therefore there are no echos. > Let's revise once more so that we're sure we understand each other :-) > > On your master - on the computer you run "mpirun" - you put these 2 > lines into your own .bashrc: > > export PATH=$PATH:/op

Re: [OMPI users] Open MPI and env. variables (LD_LIBRARY_PATH and PATH) - complete and utter Open MPI / Linux noob

2009-08-02 Thread Dominik Táborský
Okay, now it's getting more confusing since I just found out that it somehow stopped working for me! Anyway, let's find a solution. I found out that there is difference between ssh node1 echo $PATH and ssh node1 'echo $PATH' These command give you different output. 'man ssh' states that it sets

Re: [OMPI users] Open MPI and env. variables (LD_LIBRARY_PATH and PATH) - complete and utter Open MPI / Linux noob

2009-08-02 Thread Dorian Krause
Hi, Dominik Táborský wrote: Okay, now it's getting more confusing since I just found out that it somehow stopped working for me! Anyway, let's find a solution. I found out that there is difference between ssh node1 echo $PATH In this case the $PATH variable is expanded by the shell *befor

Re: [OMPI users] Open MPI and env. variables (LD_LIBRARY_PATH and PATH) - complete and utter Open MPI / Linux noob

2009-08-02 Thread Tomislav Maric
Dominik Táborský wrote: > Okay, now it's getting more confusing since I just found out that it > somehow stopped working for me! > > Anyway, let's find a solution. > I found out that there is difference between > ssh node1 echo $PATH > and > ssh node1 'echo $PATH' > These command give you differ

Re: [OMPI users] Open MPI and env. variables (LD_LIBRARY_PATH and PATH) - complete and utter Open MPI / Linux noob

2009-08-02 Thread Dominik Táborský
I'm sorry, I can't help you with NFS. I have never had it on my network. Good luck anyway... :) Tomislav Maric píše v Ne 02. 08. 2009 v 20:18 +0200: > Dominik Táborský wrote: > > Okay, now it's getting more confusing since I just found out that it > > somehow stopped working for me! > > > > Any