In SGE / UGE, the configuration is set by the administrator, so you should check what they called parallel environments
qconf -spl make our_paraq
find one with $pe_slots
in config
qconf -sp make qconf -sp our_paraq
qsub with this environment and the number of cores you want to use
qsub -pe our_paraq 8 -cwd ./myscript
If you use mpi, you have more options for the configuration distribution rule ( $pe_slots
above), for example $round_robin
and $fill_up
, but this should force you.
source share