Skip to content
Snippets Groups Projects
Commit 4efeab13 authored by Moe Jette's avatar Moe Jette
Browse files

step given all of a job's nodes if min_nodes == INFINITE

parent aed0a7e7
No related branches found
No related tags found
No related merge requests found
...@@ -250,6 +250,9 @@ pack_step (struct step_record *dump_step_ptr, void **buf_ptr, int *buf_len) ...@@ -250,6 +250,9 @@ pack_step (struct step_record *dump_step_ptr, void **buf_ptr, int *buf_len)
/* /*
* pick_step_nodes - select nodes for a job step that satify its requirements * pick_step_nodes - select nodes for a job step that satify its requirements
* we satify the super-set of constraints. * we satify the super-set of constraints.
* global: node_record_table_ptr - pointer to global node table
* NOTE: returns all of a job's nodes if min_nodes == INFINITE
* NOTE: returned bitmap must be freed by the caller using bit_free()
*/ */
bitstr_t * bitstr_t *
pick_step_nodes (struct job_record *job_ptr, int min_nodes, int min_cpus, pick_step_nodes (struct job_record *job_ptr, int min_nodes, int min_cpus,
...@@ -262,7 +265,8 @@ pick_step_nodes (struct job_record *job_ptr, int min_nodes, int min_cpus, ...@@ -262,7 +265,8 @@ pick_step_nodes (struct job_record *job_ptr, int min_nodes, int min_cpus,
nodes_avail = bit_copy(job_ptr->node_bitmap); nodes_avail = bit_copy(job_ptr->node_bitmap);
/* we want a short-cut here for all nodes, just return copy of job_ptr->node_bitmap */ if (min_nodes == INFINITE) /* return all available nodes */
return nodes_avail;
if (node_list) { if (node_list) {
error_code = node_name2bitmap (node_list, &nodes_picked); error_code = node_name2bitmap (node_list, &nodes_picked);
......
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