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

Disable --multi-prog with multiple pack groups

parent 11134053
No related branches found
No related tags found
No related merge requests found
......@@ -500,6 +500,9 @@ components of a heterogeneous job.</p>
<p>Slurm's PERL APIs currently do not support heterogeneous jobs.</p>
<p>The srun --multi-prog option can not be used to span more than one
heterogeneous job component.</p>
<h2><a name="sys_admin">System Administrator Information</a></h2>
<p>The job submit plugin is invoked independently for each component of a
......@@ -576,6 +579,6 @@ especially other heterogeneous jobs.</p>
<p class="footer"><a href="#top">top</a></p>
<p style="text-align:center;">Last modified 29 August 2017</p>
<p style="text-align:center;">Last modified 4 September 2017</p>
<!--#include virtual="footer.txt"-->
......@@ -487,6 +487,7 @@ static void _pack_grp_test(List opt_list)
int pack_offset;
bitstr_t *master_map = NULL;
List missing_argv_list = NULL;
bool multi_pack = false, multi_prog = false;
if (opt_list) {
missing_argv_list = list_create(NULL);
......@@ -510,12 +511,15 @@ static void _pack_grp_test(List opt_list)
} else {
if (bit_overlap(master_map,
opt_local->pack_grp_bits)) {
error("Duplicate pack groups in single srun not supported");
exit(error_exit);
fatal("Duplicate pack groups in single srun not supported");
}
bit_or(master_map, opt_local->pack_grp_bits);
}
if (opt_local->multi_prog)
multi_prog = true;
}
if (master_map && (bit_set_count(master_map) > 1))
multi_pack = true;
FREE_NULL_BITMAP(master_map);
list_iterator_destroy(iter);
list_destroy(missing_argv_list);
......@@ -525,8 +529,15 @@ static void _pack_grp_test(List opt_list)
} else if (!opt.pack_group && opt.pack_grp_bits) {
if ((pack_offset = bit_ffs(opt.pack_grp_bits)) < 0)
pack_offset = 0;
else if (bit_set_count(opt.pack_grp_bits) > 1)
multi_pack = true;
if (opt.multi_prog)
multi_prog = true;
xstrfmtcat(opt.pack_group, "%d", pack_offset);
}
if (multi_pack && multi_prog)
fatal("--multi-prog option not supported with multiple pack groups");
}
/*
......
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