Txema Heredia Genestar <txema.here...@upf.edu> writes:

> An example:
> User 1 submits a job with "-pe threaded 4-12 " to a 12-core node with
> 3 single-core jobs running. SGE grants the job 9 slots and it starts 9
> threads. My 2 options now are: setting cb to pe_min (= 4) or to pe_max
> (= 12). The first case will slow that job, and the second one will
> ignore binding and mess with all 4 jobs in the node.
>
> Is there any other way to set the core binding to exactly the number
> of cores the job is granted?

SGE 8.0.0c and later supports "-binding linear:slots", which is meant to
be a reasonable default for sge_request.  8.1.1 also exports the binding
in the environment for use with OpenMP runtime, for instance.  If you
want to enforce the binding and use a recent Linux (e.g. from Red Hat 5
or 6), the development SGE has support for cpusets.

-- 
Community Grid Engine:  http://arc.liv.ac.uk/SGE/
_______________________________________________
users mailing list
users@gridengine.org
https://gridengine.org/mailman/listinfo/users

Reply via email to