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

Set the default task count to the node count based upon actual allocation

(it can vary if node range is specified "-N2-8").
parent a58a25ca
No related branches found
No related tags found
No related merge requests found
...@@ -328,6 +328,8 @@ _allocate_nodes(void) ...@@ -328,6 +328,8 @@ _allocate_nodes(void)
} }
sigaction(SIGINT, &old_action, NULL); sigaction(SIGINT, &old_action, NULL);
} }
if (!opt.nprocs_set) /* can vary by min-max node count */
opt.nprocs = resp->node_cnt;
return resp; return resp;
} }
......
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