[GE users] Setting OMP_NUM_THREADS automatically

Chris Rudge chris.rudge at astro.le.ac.uk
Fri Jul 25 13:45:46 BST 2008


Great, that seems to work. Obviously it now gets set for all jobs that
run in that queue, and has to be set for all queues that run OpenMP
jobs, but I can live with that.

Chris

On Fri, 2008-07-25 at 13:51 +0200, Reuti wrote:
> you could setup a custom starter_method like:
> 
> #!/bin/sh
> export OMP_NUM_THREADS=$NSLOTS
> exec "$@"
> 
> and set it in the queue definition just:
> 
> starter_method /usr/sge/cluster/startup.sh
> 
> -- Reuti 
-- 
Dr Chris Rudge
chris.rudge at astro.le.ac.uk

Research Computing Manager
Dept of Physics & Astronomy
University of Leicester
LE1 7RH

web.  www.ukaff.ac.uk
Tel.  +44 (0)116 2523331
Fax.  +44 (0)116 2231283
Mob.  +44 (0)794 1379420


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe at gridengine.sunsource.net
For additional commands, e-mail: users-help at gridengine.sunsource.net




More information about the gridengine-users mailing list