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
3c2039d1
Commit
3c2039d1
authored
13 years ago
by
Morris Jette
Browse files
Options
Downloads
Plain Diff
Merge branch 'slurm-2.3'
parents
d4a22fe8
f59f6a27
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
+2
-0
2 additions, 0 deletions
NEWS
doc/man/man1/srun.1
+2
-2
2 additions, 2 deletions
doc/man/man1/srun.1
src/srun/multi_prog.c
+17
-11
17 additions, 11 deletions
src/srun/multi_prog.c
with
21 additions
and
13 deletions
NEWS
+
2
−
0
View file @
3c2039d1
...
...
@@ -139,6 +139,8 @@ documents those changes that are of interest to users and admins.
-- Permit gres count configuration of zero.
-- Fix race condition where sbcast command can result in deadlock of slurmd
daemon. Patch by Don Albert, Bull.
-- Fix bug in srun --multi-prog configuration file to avoid printing duplicate
record error when "*" is used at the end of the file for the task ID.
* Changes in SLURM 2.3.2
========================
...
...
This diff is collapsed.
Click to expand it.
doc/man/man1/srun.1
+
2
−
2
View file @
3c2039d1
...
...
@@ -1857,8 +1857,8 @@ One or more task ranks to use this configuration.
Multiple values may be comma separated.
Ranges may be indicated with two numbers separated with a '\-' with
the smaller number first (e.g. "0\-4" and not "4\-0").
To indicate all tasks
, specify a rank of '*' (in which case you probably
should not be using this option)
.
To indicate all tasks
not otherwise specified, specify a rank of '*' as the
last line of the file
.
If an attempt is made to initiate a task for which no executable
program is defined, the following error message will be produced
"No executable program specified for this task".
...
...
This diff is collapsed.
Click to expand it.
src/srun/multi_prog.c
+
17
−
11
View file @
3c2039d1
...
...
@@ -111,7 +111,7 @@ _build_path(char* fname)
}
static
void
_set_range
(
int
low_num
,
int
high_num
,
char
*
exec_name
)
_set_range
(
int
low_num
,
int
high_num
,
char
*
exec_name
,
bool
ignore_duplicates
)
{
#if defined HAVE_BG_FILES && !defined HAVE_BG_L_P
/* Use symbols from the runjob.so library provided by IBM.
...
...
@@ -122,11 +122,12 @@ _set_range(int low_num, int high_num, char *exec_name)
for
(
i
=
low_num
;
i
<=
high_num
;
i
++
)
{
MPIR_PROCDESC
*
tv
;
tv
=
&
MPIR_proctable
[
i
];
if
(
tv
->
executable_name
)
{
error
(
"duplicate configuration for task %d ignored"
,
i
);
}
else
if
(
tv
->
executable_name
==
NULL
)
{
tv
->
executable_name
=
xstrdup
(
exec_name
);
}
else
if
(
!
ignore_duplicates
)
{
error
(
"duplicate configuration for task %d ignored"
,
i
);
}
}
#endif
}
...
...
@@ -141,7 +142,7 @@ _set_exec_names(char *ranks, char *exec_name, int ntasks)
if
((
ranks
[
0
]
==
'*'
)
&&
(
ranks
[
1
]
==
'\0'
))
{
low_num
=
0
;
high_num
=
ntasks
-
1
;
_set_range
(
low_num
,
high_num
,
exec_path
);
_set_range
(
low_num
,
high_num
,
exec_path
,
true
);
return
;
}
...
...
@@ -155,14 +156,14 @@ _set_exec_names(char *ranks, char *exec_name, int ntasks)
if
((
ptrptr
[
0
]
==
','
)
||
(
ptrptr
[
0
]
==
'\0'
))
{
low_num
=
MAX
(
0
,
num
);
high_num
=
MIN
((
ntasks
-
1
),
num
);
_set_range
(
low_num
,
high_num
,
exec_path
);
_set_range
(
low_num
,
high_num
,
exec_path
,
false
);
}
else
if
(
ptrptr
[
0
]
==
'-'
)
{
low_num
=
MAX
(
0
,
num
);
num
=
strtol
(
ptrptr
+
1
,
&
ptrptr
,
10
);
if
((
ptrptr
[
0
]
!=
','
)
&&
(
ptrptr
[
0
]
!=
'\0'
))
goto
invalid
;
high_num
=
MIN
((
ntasks
-
1
),
num
);
_set_range
(
low_num
,
high_num
,
exec_path
);
_set_range
(
low_num
,
high_num
,
exec_path
,
false
);
}
else
goto
invalid
;
if
(
ptrptr
[
0
]
==
'\0'
)
...
...
@@ -307,7 +308,8 @@ mpir_dump_proctable(void)
}
static
int
_update_task_mask
(
int
low_num
,
int
high_num
,
int
ntasks
,
bitstr_t
*
task_mask
)
_update_task_mask
(
int
low_num
,
int
high_num
,
int
ntasks
,
bitstr_t
*
task_mask
,
bool
ignore_duplicates
)
{
int
i
;
...
...
@@ -325,6 +327,8 @@ _update_task_mask(int low_num, int high_num, int ntasks, bitstr_t *task_mask)
}
for
(
i
=
low_num
;
i
<=
high_num
;
i
++
)
{
if
(
bit_test
(
task_mask
,
i
))
{
if
(
ignore_duplicates
)
continue
;
error
(
"Duplicate record for task %d"
,
i
);
return
-
1
;
}
...
...
@@ -343,7 +347,8 @@ _validate_ranks(char *ranks, int ntasks, bitstr_t *task_mask)
if
(
ranks
[
0
]
==
'*'
&&
ranks
[
1
]
==
'\0'
)
{
low_num
=
0
;
high_num
=
ntasks
-
1
;
return
_update_task_mask
(
low_num
,
high_num
,
ntasks
,
task_mask
);
return
_update_task_mask
(
low_num
,
high_num
,
ntasks
,
task_mask
,
true
);
}
for
(
range
=
strtok_r
(
ranks
,
","
,
&
ptrptr
);
range
!=
NULL
;
...
...
@@ -371,7 +376,8 @@ _validate_ranks(char *ranks, int ntasks, bitstr_t *task_mask)
return
-
1
;
}
if
(
_update_task_mask
(
low_num
,
high_num
,
ntasks
,
task_mask
))
if
(
_update_task_mask
(
low_num
,
high_num
,
ntasks
,
task_mask
,
false
))
return
-
1
;
}
return
0
;
...
...
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