Discussion:
openmpi with different ssh
(too old to reply)
Fabian Braennstroem
2007-12-10 19:43:55 UTC
Permalink
Hi,

I would like to transmit environment variables on a cluster
to all used nodes on a PBS/qsub system, when using openmpi.
Does anyone know, if there is any possibility to do that?
Right now, the environment variables are just transfered to
the first node!?

Regards!
Fabian
Georg Bisseling
2007-12-12 15:44:47 UTC
Permalink
"mpirun --help" suggests to use the -x option...
Fabian Braennstroem
2007-12-13 21:50:06 UTC
Permalink
Hi Georg
Post by Georg Bisseling
"mpirun --help" suggests to use the -x option...
Thanks, did not see this... unfortunately it does not seem
to work. The problem might be, that these environment
variables define the path (and a lot more) to the mpirun
directory!
I tried a different approach by running a script, which
defines these variables, with mpirun, e.g.:

mpirun -np 2 script.sh

the script.sh looks like:

export something='alskdj'
binary_file_to_run

But this approach does not work either!?
Would be nice, if someone has an idea!

Regards!
Fabian
Georg Bisseling
2007-12-14 10:14:32 UTC
Permalink
If a mere

mpirun -x BLABLA ....

does not work, then it might be necessary
to say

export BLABLA
mpirun -x BLABLA

to get the environment variable exported to the mpirun
process in the first place.


Or you can try:

mpirun -x "BLABLA=3D$BLABLA"

Loading...