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
66fddac3
Commit
66fddac3
authored
14 years ago
by
Don Lipari
Browse files
Options
Downloads
Patches
Plain Diff
Fixed bug in sacctmgr to disambiguate Preempt from PreemptMode
parent
d0ba9623
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
src/sacctmgr/common.c
+6
-5
6 additions, 5 deletions
src/sacctmgr/common.c
src/sacctmgr/qos_functions.c
+14
-13
14 additions, 13 deletions
src/sacctmgr/qos_functions.c
with
20 additions
and
18 deletions
src/sacctmgr/common.c
+
6
−
5
View file @
66fddac3
...
...
@@ -402,16 +402,17 @@ static print_field_t *_get_print_field(char *object)
field
->
name
=
xstrdup
(
"PluginIDSelect"
);
field
->
len
=
14
;
field
->
print_routine
=
print_fields_uint
;
}
else
if
(
!
strncasecmp
(
"Preempt"
,
object
,
MAX
(
command_len
,
7
)))
{
field
->
type
=
PRINT_PREE
;
field
->
name
=
xstrdup
(
"Preempt"
);
field
->
len
=
10
;
field
->
print_routine
=
sacctmgr_print_qos_bitstr
;
}
else
if
(
!
strncasecmp
(
"PreemptMode"
,
object
,
MAX
(
command_len
,
8
)))
{
field
->
type
=
PRINT_PREEM
;
field
->
name
=
xstrdup
(
"PreemptMode"
);
field
->
len
=
11
;
field
->
print_routine
=
print_fields_str
;
/* Preempt needs to follow PreemptMode */
}
else
if
(
!
strncasecmp
(
"Preempt"
,
object
,
MAX
(
command_len
,
7
)))
{
field
->
type
=
PRINT_PREE
;
field
->
name
=
xstrdup
(
"Preempt"
);
field
->
len
=
10
;
field
->
print_routine
=
sacctmgr_print_qos_bitstr
;
}
else
if
(
!
strncasecmp
(
"Priority"
,
object
,
MAX
(
command_len
,
3
)))
{
field
->
type
=
PRINT_PRIO
;
field
->
name
=
xstrdup
(
"Priority"
);
...
...
This diff is collapsed.
Click to expand it.
src/sacctmgr/qos_functions.c
+
14
−
13
View file @
66fddac3
...
...
@@ -195,7 +195,7 @@ static int _set_cond(int *start, int argc, char *argv[],
}
list_iterator_destroy
(
itr
);
}
else
if
(
!
strncasecmp
(
argv
[
i
],
"PreemptMode"
,
MAX
(
command_len
,
3
)))
{
MAX
(
command_len
,
8
)))
{
if
(
!
qos_cond
)
continue
;
qos_cond
->
preempt_mode
|=
...
...
@@ -378,6 +378,19 @@ static int _set_rec(int *start, int argc, char *argv[],
" Bad MaxWall time format: %s
\n
"
,
argv
[
i
]);
}
}
else
if
(
!
strncasecmp
(
argv
[
i
],
"PreemptMode"
,
MAX
(
command_len
,
8
)))
{
if
(
!
qos
)
continue
;
qos
->
preempt_mode
=
preempt_mode_num
(
argv
[
i
]
+
end
);
if
(
qos
->
preempt_mode
==
(
uint16_t
)
NO_VAL
)
{
fprintf
(
stderr
,
" Bad Preempt Mode given: %s
\n
"
,
argv
[
i
]);
exit_code
=
1
;
}
else
set
=
1
;
/* Preempt needs to follow PreemptMode */
}
else
if
(
!
strncasecmp
(
argv
[
i
],
"Preempt"
,
MAX
(
command_len
,
7
)))
{
if
(
!
qos
)
...
...
@@ -397,18 +410,6 @@ static int _set_rec(int *start, int argc, char *argv[],
set
=
1
;
else
exit_code
=
1
;
}
else
if
(
!
strncasecmp
(
argv
[
i
],
"PreemptMode"
,
MAX
(
command_len
,
8
)))
{
if
(
!
qos
)
continue
;
qos
->
preempt_mode
=
preempt_mode_num
(
argv
[
i
]
+
end
);
if
(
qos
->
preempt_mode
==
(
uint16_t
)
NO_VAL
)
{
fprintf
(
stderr
,
" Bad Preempt Mode given: %s
\n
"
,
argv
[
i
]);
exit_code
=
1
;
}
else
set
=
1
;
}
else
if
(
!
strncasecmp
(
argv
[
i
],
"Priority"
,
MAX
(
command_len
,
3
)))
{
if
(
!
qos
)
...
...
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