On 13 July 2012 07:37, Joseph A. Farran <[email protected]> wrote: > Hi. > > I am trying to set OMP_NUM_THREADS to the number of slots in my .sge_request > with > > -v OMP_NUM_THREADS=$NSLOTS > > But GE is not setting the variable to the value of $NSLOTS. It does a > literal set of "$NSLOTS". > > Can this be done with .sge_request to set OMP_NUM_THREADS with say 8 if > $NSLOTS is equal to 8?
No that gets set when the job is submitted and $NSLOTS isn't set until runtime(because you can request a PE range). You could put instructions to do this in shell initialization scripts and/or set ENV/BASH_ENV scripts via .sge_request to point to a shell fragment that does this. William _______________________________________________ users mailing list [email protected] https://gridengine.org/mailman/listinfo/users
