Some reading:
http://wiki.gridengine.info/wiki/index.php/StephansBlog
https://www.clumeq.ca/wiki/index.php/Using_SGE#Queues_List
http://ait.web.psi.ch/services/linux/hpc/merlin3/sge/admin/sge_queues.html
qconf -ahgrp @quads
group_name @quadsqconf -aq four.q
hostlist tantalum
qname three.q
hostlist @quads
seq_no 1
slots 4,[tantalum=4]
pe_list make mpi4
qconf -ahgrp @thrice
group_name @thriceqconf -aq three.q
hostlist boron beryllium
qname three.q
hostlist @thrice
seq_no 1
pe_list make mpi3
slots 3,[boron=3],[beryllium=3]
Finally, to avoid submitting jobs to main.q without deleting it, we change the seq_no to 9 for that particular q.
Also, we'll change the pe_list on main.q to remove mpi3 and mpi4 -- that way main.q is only used if I request only one core.
Also, we'll change the pe_list on main.q to remove mpi3 and mpi4 -- that way main.q is only used if I request only one core.
pe_list make mpi1And now jobs get sent to the right queue (and node) depending on the number of cores I request.