Re: [OMPI users] defining different values for same environment variable

2009-03-02 Thread Josh Hursey
On Mar 2, 2009, at 8:41 AM, Jeff Squyres wrote: On Mar 2, 2009, at 4:02 AM, Nicolas Deladerriere wrote: > I think you missed Matt's point -- he was suggesting writing a single script that just reacts accordingly to which host it is on and sets > the environment variable before launching yo

Re: [OMPI users] defining different values for same environment variable

2009-03-02 Thread Jeff Squyres
On Mar 2, 2009, at 4:02 AM, Nicolas Deladerriere wrote: > I think you missed Matt's point -- he was suggesting writing a single script that just reacts accordingly to which host it is on and sets > the environment variable before launching your back-end MPI executable. I got it, but I wou

Re: [OMPI users] defining different values for same environment variable

2009-03-02 Thread jody
Hi I don't understand why it is a problem to copy a single script to your nodes - wouldn't the following shell-script work? #!/bin/sh for num in `seq 128` do scp new_script username@host_$num:path/to/workdir/ done jody On Mon, Mar 2, 2009 at 10:02 AM, Nicolas Deladerriere wrote: >>

Re: [OMPI users] defining different values for same environment variable

2009-03-02 Thread Nicolas Deladerriere
> I think you missed Matt's point -- he was suggesting writing a single script that just reacts accordingly to which host it is on and sets > the environment variable before launching your back-end MPI executable. I got it, but I would like to be able to do it without creating/copying new script o

Re: [OMPI users] defining different values for same environment variable

2009-02-28 Thread Jeff Squyres
I think you missed Matt's point -- he was suggesting writing a single script that just reacts accordingly to which host it is on and sets the environment variable before launching your back-end MPI executable. Specifically, instead of: mpirun ... my_mpi_app you would do mpirun ... script

Re: [OMPI users] defining different values for same environment variable

2009-02-28 Thread jody
perhaps you could use the Open-MPI environment variables OMPI_COMM_WORLD_RANK OMPI_COMM_WORLD_LOCAL_RANK to construct your own environment variables? (for versions >= 1.3) Jody On Fri, Feb 27, 2009 at 8:36 PM, Nicolas Deladerriere wrote: > Matt, > > Thanks for your solution, but I thought abou

Re: [OMPI users] defining different values for same environment variable

2009-02-27 Thread Nicolas Deladerriere
Matt, Thanks for your solution, but I thought about that and it is not really convenient in my configuration to change the executable on each node. I would like to change only mpirun command. 2009/2/27 Matt Hughes > > 2009/2/27 Nicolas Deladerriere : > > I am looking for a way to set environm

Re: [OMPI users] defining different values for same environment variable

2009-02-27 Thread Matt Hughes
2009/2/27 Nicolas Deladerriere : > I am looking for a way to set environment variable with different value on > each node before running MPI executable. (not only export the environment > variable !) I typically use a script for things like this. So instead of specifying your executable directly