Skip to content
Snippets Groups Projects
Commit 3d62c286 authored by Morris Jette's avatar Morris Jette
Browse files

Allocate whole node in with --exclusive

With select/cons_res plugin and a job using the --exclusive option
if the partition supports gang scheduling or mutliple jobs per node,
then allocate CPUs to multiple jobs, but allocate the job every
CPU on each node.
parent f21d21d6
No related branches found
No related tags found
No related merge requests found
...@@ -899,7 +899,8 @@ extern int cr_dist(struct job_record *job_ptr, const uint16_t cr_type) ...@@ -899,7 +899,8 @@ extern int cr_dist(struct job_record *job_ptr, const uint16_t cr_type)
{ {
int error_code, cr_cpu = 1; int error_code, cr_cpu = 1;
if ((job_ptr->job_resrcs->node_req == NODE_CR_RESERVED) && if (((job_ptr->job_resrcs->node_req == NODE_CR_RESERVED) ||
(job_ptr->details->whole_node != 0)) &&
(job_ptr->details->core_spec == 0)) { (job_ptr->details->core_spec == 0)) {
/* the job has been allocated an EXCLUSIVE set of nodes, /* the job has been allocated an EXCLUSIVE set of nodes,
* so it gets all of the bits in the core_bitmap and * so it gets all of the bits in the core_bitmap and
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment