Re: [OMPI users] MPI Behaviour Question

2016-10-12 Thread Mark Potter
After the responses I did more testing. Even $(hostname) and `hostname` get expanded on the first node. A script using echo (then any of them from the environment variable to the backticks works. I'm guessing all shell expansion on the CLI happens on the first node, from my limited testing. That

Re: [OMPI users] MPI Behaviour Question

2016-10-11 Thread Reuti
Hi, > Am 11.10.2016 um 14:56 schrieb Mark Potter : > > This question is related to OpenMPI 2.0.1 compiled with GCC 4.8.2 on > RHEL 6.8 using Torque 6.0.2 with Moab 9.0.2. To be clear, I am an > administrator and not a coder and I suspect this is expected behavior > but I

Re: [OMPI users] MPI Behaviour Question

2016-10-11 Thread Gilles Gouaillardet
Mark, My understanding is that shell meta expansion occurs once on the first node, so from an Open MPI point of view, you really invoke mpirun echo node0 I suspect mpirun echo 'Hello from $(hostname)' Is what you want to do I do not know about mpirun echo 'Hello from $HOSTNAME' $HOSTNAME might

[OMPI users] MPI Behaviour Question

2016-10-11 Thread Mark Potter
This question is related to OpenMPI 2.0.1 compiled with GCC 4.8.2 on RHEL 6.8 using Torque 6.0.2 with Moab 9.0.2. To be clear, I am an administrator and not a coder and I suspect this is expected behavior but I have been asked by a client to explain why this is happening. Using Torque, the