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
52f8f7d6
Commit
52f8f7d6
authored
17 years ago
by
Moe Jette
Browse files
Options
Downloads
Patches
Plain Diff
Fix a bug in the processing of srun's --exclusive option for a job step.
parent
910c8d46
No related branches found
No related tags found
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
NEWS
+1
-0
1 addition, 0 deletions
NEWS
src/srun/opt.c
+0
-7
0 additions, 7 deletions
src/srun/opt.c
src/srun/srun.c
+7
-0
7 additions, 0 deletions
src/srun/srun.c
with
8 additions
and
7 deletions
NEWS
+
1
−
0
View file @
52f8f7d6
...
...
@@ -6,6 +6,7 @@ documents those changes that are of interest to users and admins.
-- Add support for configurable number of jobs to share resources using the
partition Shared parameter in slurm.conf (e.g. "Shared=FORCE:3" for two
jobs to share the resources). From Chris Holmes, HP.
-- Fix a bug in the processing of srun's --exclusive option for a job step.
* Changes in SLURM 1.3.0-pre5
=============================
...
...
This diff is collapsed.
Click to expand it.
src/srun/opt.c
+
0
−
7
View file @
52f8f7d6
...
...
@@ -1822,13 +1822,6 @@ static bool _opt_verify(void)
opt
.
nodes_set
=
true
;
}
}
if
(
opt
.
exclusive
&&
opt
.
nodes_set
)
{
verbose
(
"ignoring node count set by --nodes or SLURM_NNODES"
);
verbose
(
" it is incompatible with --exclusive"
);
opt
.
nodes_set
=
false
;
opt
.
min_nodes
=
1
;
opt
.
max_nodes
=
0
;
}
if
((
opt
.
nodes_set
||
opt
.
extra_set
)
&&
!
opt
.
nprocs_set
)
{
/* 1 proc / node default */
opt
.
nprocs
=
opt
.
min_nodes
;
...
...
This diff is collapsed.
Click to expand it.
src/srun/srun.c
+
7
−
0
View file @
52f8f7d6
...
...
@@ -835,6 +835,13 @@ static void _pty_restore(void)
/* opt.exclusive is set, disable user task layout controls */
static
void
_step_opt_exclusive
(
void
)
{
if
(
opt
.
nodes_set
)
{
verbose
(
"ignoring node count set by --nodes or SLURM_NNODES"
);
verbose
(
" it is incompatible with --exclusive"
);
opt
.
nodes_set
=
false
;
opt
.
min_nodes
=
1
;
opt
.
max_nodes
=
0
;
}
if
(
!
opt
.
nprocs_set
)
fatal
(
"--nprocs must be set with --exclusive"
);
if
(
opt
.
relative_set
)
...
...
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