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
cb8402cc
Commit
cb8402cc
authored
18 years ago
by
Danny Auble
Browse files
Options
Downloads
Patches
Plain Diff
svn merge -r11003:11019
https://eris.llnl.gov/svn/slurm/branches/slurm-1.1
parent
fd680bf8
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
NEWS
+2
-0
2 additions, 0 deletions
NEWS
src/srun/srun_job.c
+22
-3
22 additions, 3 deletions
src/srun/srun_job.c
with
24 additions
and
3 deletions
NEWS
+
2
−
0
View file @
cb8402cc
...
...
@@ -237,6 +237,8 @@ documents those changes that are of interest to users and admins.
* Changes in SLURM 1.1.30
=========================
- Fix to make sure users don't include and exclude the same node in their srun
line.
* Changes in SLURM 1.1.29
=========================
...
...
This diff is collapsed.
Click to expand it.
src/srun/srun_job.c
+
22
−
3
View file @
cb8402cc
...
...
@@ -198,11 +198,14 @@ job_step_create_allocation(uint32_t job_id)
if
(
opt
.
exc_nodes
)
{
hostlist_t
exc_hl
=
hostlist_create
(
opt
.
exc_nodes
);
hostlist_t
inc_hl
=
NULL
;
char
*
node_name
=
NULL
;
hl
=
hostlist_create
(
ai
->
nodelist
);
if
(
opt
.
nodelist
)
if
(
opt
.
nodelist
)
{
hostlist_push
(
hl
,
opt
.
nodelist
);
inc_hl
=
hostlist_create
(
opt
.
nodelist
);
}
hostlist_uniq
(
hl
);
//info("using %s or %s", opt.nodelist, ai->nodelist);
while
((
node_name
=
hostlist_shift
(
exc_hl
)))
{
...
...
@@ -212,13 +215,28 @@ job_step_create_allocation(uint32_t job_id)
hostlist_delete_nth
(
hl
,
inx
);
ai
->
nnodes
--
;
/* decrement node count */
}
if
(
inc_hl
)
{
inx
=
hostlist_find
(
inc_hl
,
node_name
);
if
(
inx
>=
0
)
{
error
(
"Requested node %s is also "
"in the excluded list."
,
node_name
);
error
(
"Job not submitted."
);
hostlist_destroy
(
exc_hl
);
hostlist_destroy
(
inc_hl
);
goto
error
;
}
}
free
(
node_name
);
}
hostlist_destroy
(
exc_hl
);
if
(
inc_hl
)
hostlist_destroy
(
inc_hl
);
if
(
!
hostlist_count
(
hl
))
{
error
(
"Hostlist is now nothing! Can't run job."
);
return
NULL
;
hostlist_destroy
(
hl
);
goto
error
;
}
hostlist_destroy
(
exc_hl
);
hostlist_ranged_string
(
hl
,
sizeof
(
buf
),
buf
);
hostlist_destroy
(
hl
);
xfree
(
opt
.
nodelist
);
...
...
@@ -237,6 +255,7 @@ job_step_create_allocation(uint32_t job_id)
hostlist_uniq
(
hl
);
if
(
!
hostlist_count
(
hl
))
{
error
(
"Hostlist is now nothing! Can not run job."
);
hostlist_destroy
(
hl
);
return
NULL
;
}
hostlist_ranged_string
(
hl
,
sizeof
(
buf
),
buf
);
...
...
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