Mazouzi <[email protected]> writes:
> JSV is the best way imo.
Is there another way, except by wrapping qsub?
> Check if job has requested "-pe" and add -R y
Right; this fragment used here must be in the archives:
# For a parallel job, maybe modify the PE and add a resource
# reservation if we think the job is big enough.
if [ $(jsv_is_param pe_name) = true ]; then
pe=$(jsv_get_param pe_name)
pemin=$(jsv_get_param pe_min)
pemax=$(jsv_get_param pe_max)
...
# Check for an appropriate pe_min with no existing reservation.
if [ $(jsv_is_param R) = false ]; then
if [ $pemin -ge $pe_min_reserve ]; then
# only for local users
if egrep -q "[ ,]$USER(,|\$)"
$SGE_ROOT/$SGE_CELL/spool/qmaster/usersets/localusers 2>/dev/null; then
jsv_set_param R y
modified=1
fi
fi
fi
--
Community Grid Engine: http://arc.liv.ac.uk/SGE/
_______________________________________________
users mailing list
[email protected]
https://gridengine.org/mailman/listinfo/users