Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
S
Slurm
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
tud-zih-energy
Slurm
Commits
4d55f657
Commit
4d55f657
authored
7 years ago
by
Morris Jette
Browse files
Options
Downloads
Patches
Plain Diff
Disable --multi-prog with multiple pack groups
parent
11134053
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
doc/html/heterogeneous_jobs.shtml
+4
-1
4 additions, 1 deletion
doc/html/heterogeneous_jobs.shtml
src/srun/libsrun/srun_job.c
+13
-2
13 additions, 2 deletions
src/srun/libsrun/srun_job.c
with
17 additions
and
3 deletions
doc/html/heterogeneous_jobs.shtml
+
4
−
1
View file @
4d55f657
...
...
@@ -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"-->
This diff is collapsed.
Click to expand it.
src/srun/libsrun/srun_job.c
+
13
−
2
View file @
4d55f657
...
...
@@ -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"
);
}
/*
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment