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 augment this so it can also set an env var per
execution host for each MPI job.

Any suggestions for how this could be done?  I can't just append to
$SGE_JOB_SPOOL_DIR/environment as prolog scripts, queue startup
methods and parallel environment start_proc_args scripts are only run
on the master node of a parallel job and $SGE_JOB_SPOOL_DIR is local
to each host.

Regards,

Will

-- 
Dr Will Furnass | Research Software Engineer
Dept of Computer Science | University of Sheffield
https://rse.shef.ac.uk | @willfurnass | +44 (0) 22 21874
_______________________________________________
SGE-discuss mailing list
SGE-discuss@liv.ac.uk
https://arc.liv.ac.uk/mailman/listinfo/sge-discuss

Reply via email to