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
f78a6a06
Commit
f78a6a06
authored
12 years ago
by
Danny Auble
Browse files
Options
Downloads
Patches
Plain Diff
BGQ - make it so srun -i<taskid> works correctly
parent
2b6b3061
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
NEWS
+1
-0
1 addition, 0 deletions
NEWS
src/srun/opt.c
+13
-0
13 additions, 0 deletions
src/srun/opt.c
with
14 additions
and
0 deletions
NEWS
+
1
−
0
View file @
f78a6a06
...
...
@@ -5,6 +5,7 @@ documents those changes that are of interest to users and admins.
=============================
-- Cray - Improve support for zero compute note resource allocations.
Partition used can now be configured with no nodes nodes.
-- BGQ - make it so srun -i<taskid> works correctly
* Changes in SLURM 2.4.0.rc1
=============================
...
...
This diff is collapsed.
Click to expand it.
src/srun/opt.c
+
13
−
0
View file @
f78a6a06
...
...
@@ -1722,6 +1722,7 @@ static void _opt_args(int argc, char **argv)
}
#if defined HAVE_BG_FILES
uint32_t
taskid
=
0
;
if
(
!
opt
.
test_only
)
{
/* Since we need the opt.argc to allocate the opt.argv array
* we need to do this before actually messing with
...
...
@@ -1743,6 +1744,13 @@ static void _opt_args(int argc, char **argv)
command_pos
+=
2
;
if
(
_verbose
)
command_pos
+=
2
;
if
(
opt
.
ifname
)
{
char
*
p
;
taskid
=
strtoul
(
opt
.
ifname
,
&
p
,
10
);
if
((
*
p
==
'\0'
)
&&
((
int
)
taskid
<
opt
.
ntasks
))
{
command_pos
+=
2
;
}
}
if
(
opt
.
runjob_opts
)
{
char
*
save_ptr
=
NULL
,
*
tok
;
char
*
tmp
=
xstrdup
(
opt
.
runjob_opts
);
...
...
@@ -1804,6 +1812,11 @@ static void _opt_args(int argc, char **argv)
opt
.
argv
[
i
++
]
=
xstrdup_printf
(
"%d"
,
_verbose
);
}
if
(
taskid
)
{
opt
.
argv
[
i
++
]
=
xstrdup
(
"--stdinrank"
);
opt
.
argv
[
i
++
]
=
xstrdup_printf
(
"%u"
,
taskid
);
}
if
(
opt
.
runjob_opts
)
{
char
*
save_ptr
=
NULL
,
*
tok
;
char
*
tmp
=
xstrdup
(
opt
.
runjob_opts
);
...
...
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