Re: [SGE-discuss] Setting environment variable per execution host for MPI jobs

2017-04-06 Thread Will Furnass
Hi Reuti, On 6 April 2017 at 17:15, Reuti wrote: >> I'm now wanting to augment this so it can also set an env var per >> execution host for each MPI job. > > Which implementation of MPI? > > Several have an export switch, e.g. Open MPI: > > $ mpirun -x USER_ENV_VAR … > > to export certain set env

[SGE-discuss] Setting environment variable per execution host for MPI jobs

2017-04-06 Thread Will Furnass
Hi all, I've got a prolog script that sets an environment var for users' serial and smp jobs: https://github.com/willfurnass/sge-gpuprolog/blob/smp-slot-scaling/prolog.sh This script finishes with the following: echo "USER_ENV_VAR=SOMEVALUE" >> $SGE_JOB_SPOOL_DIR/environment I'm now wanting to