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

Fix for batch job CPU count if --ntasks-per-node specified

and max_nodes == min_nodes or no max_nodes specified
bug introduced in commit 1b7f5b91
fix for bug 343
parent 7a733859
No related branches found
No related tags found
No related merge requests found
...@@ -2145,7 +2145,7 @@ static bool _opt_verify(void) ...@@ -2145,7 +2145,7 @@ static bool _opt_verify(void)
opt.overcommit, 0); opt.overcommit, 0);
if ((opt.ntasks_per_node > 0) && (!opt.ntasks_set) && if ((opt.ntasks_per_node > 0) && (!opt.ntasks_set) &&
(opt.max_nodes == 0)) { ((opt.max_nodes == 0) || (opt.min_nodes == opt.max_nodes))) {
opt.ntasks = opt.min_nodes * opt.ntasks_per_node; opt.ntasks = opt.min_nodes * opt.ntasks_per_node;
opt.ntasks_set = 1; opt.ntasks_set = 1;
} }
......
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