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 <nicolas.deladerri...@gmail.com> wrote: > 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 <matt.c.hughes+o...@gmail.com> >> >> 2009/2/27 Nicolas Deladerriere <nicolas.deladerri...@gmail.com>: >> > 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 on the mpirun command line, >> instead specify the script. The script can set the environment >> variable, then launch your executable. >> >> #!/bin/csh >> setenv GMON_OUT_PREFIX 'gmon.out_'`/bin/uname -n` >> myexe >> >> mpirun -np 2 --bynode --hostfile CLUSTER_NODES myscript >> >> I'm not sure if that csh syntax is right, but you get the idea. >> >> mch >> _______________________________________________ >> users mailing list >> us...@open-mpi.org >> http://www.open-mpi.org/mailman/listinfo.cgi/users > > > _______________________________________________ > users mailing list > us...@open-mpi.org > http://www.open-mpi.org/mailman/listinfo.cgi/users >