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
404ceb39
Commit
404ceb39
authored
17 years ago
by
Moe Jette
Browse files
Options
Downloads
Patches
Plain Diff
sview partition information reported now includes partition priority
parent
feac6af0
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
+1
-0
1 addition, 0 deletions
NEWS
src/sview/part_info.c
+22
-1
22 additions, 1 deletion
src/sview/part_info.c
with
23 additions
and
1 deletion
NEWS
+
1
−
0
View file @
404ceb39
...
...
@@ -14,6 +14,7 @@ documents those changes that are of interest to users and admins.
"scontrol show configuration" command on the SCHEDULER_CONF line. This
information is not found in the "slurm.conf" file, but a scheduler plugin
specific configuration (e.g. "wiki.conf").
-- sview partition information reported now includes partition priority.
* Changes in SLURM 1.3.0-pre4
=============================
...
...
This diff is collapsed.
Click to expand it.
src/sview/part_info.c
+
22
−
1
View file @
404ceb39
...
...
@@ -88,6 +88,7 @@ enum {
#endif
SORTID_NODES
,
SORTID_ONLY_LINE
,
SORTID_PRIORITY
,
SORTID_REASON
,
SORTID_ROOT
,
SORTID_SHARE
,
...
...
@@ -125,6 +126,8 @@ static display_data_t display_data_part[] = {
#endif
{
G_TYPE_STRING
,
SORTID_JOB_SIZE
,
"Job Size"
,
FALSE
,
EDIT_NONE
,
refresh_part
,
create_model_part
,
admin_edit_part
},
{
G_TYPE_STRING
,
SORTID_PRIORITY
,
"Priority"
,
FALSE
,
EDIT_TEXTBOX
,
refresh_part
,
create_model_part
,
admin_edit_part
},
{
G_TYPE_STRING
,
SORTID_MIN_NODES
,
"Min Nodes"
,
FALSE
,
EDIT_TEXTBOX
,
refresh_part
,
create_model_part
,
admin_edit_part
},
{
G_TYPE_STRING
,
SORTID_MAX_NODES
,
"Max Nodes"
,
FALSE
,
...
...
@@ -413,6 +416,11 @@ static const char *_set_part_msg(update_part_msg_t *part_msg,
goto
return_error
;
part_msg
->
max_time
=
(
uint32_t
)
temp_int
;
break
;
case
SORTID_PRIORITY
:
temp_int
=
strtol
(
new_text
,
(
char
**
)
NULL
,
10
);
type
=
"priority"
;
part_msg
->
priority
=
(
uint16_t
)
temp_int
;
break
;
case
SORTID_MIN_NODES
:
temp_int
=
strtol
(
new_text
,
(
char
**
)
NULL
,
10
);
type
=
"min_nodes"
;
...
...
@@ -798,7 +806,14 @@ static void _layout_part_record(GtkTreeView *treeview,
find_col_name
(
display_data_part
,
SORTID_JOB_SIZE
),
time_buf
);
convert_num_unit
((
float
)
part_ptr
->
priority
,
time_buf
,
sizeof
(
time_buf
),
UNIT_NONE
);
add_display_treestore_line
(
update
,
treestore
,
&
iter
,
find_col_name
(
display_data_part
,
SORTID_PRIORITY
),
time_buf
);
if
(
part_ptr
->
min_nodes
==
(
uint32_t
)
INFINITE
)
snprintf
(
time_buf
,
sizeof
(
time_buf
),
"infinite"
);
else
{
...
...
@@ -972,6 +987,11 @@ static void _update_part_record(sview_part_info_t *sview_part_info,
part_ptr
->
max_nodes
,
true
);
gtk_tree_store_set
(
treestore
,
iter
,
SORTID_JOB_SIZE
,
time_buf
,
-
1
);
convert_num_unit
((
float
)
part_ptr
->
priority
,
time_buf
,
sizeof
(
time_buf
),
UNIT_NONE
);
gtk_tree_store_set
(
treestore
,
iter
,
SORTID_PRIORITY
,
time_buf
,
-
1
);
if
(
part_ptr
->
min_nodes
==
(
uint32_t
)
INFINITE
)
snprintf
(
time_buf
,
sizeof
(
time_buf
),
"infinite"
);
else
{
...
...
@@ -1724,6 +1744,7 @@ extern GtkListStore *create_model_part(int type)
-
1
);
break
;
case
SORTID_PRIORITY
:
case
SORTID_TIMELIMIT
:
case
SORTID_MIN_NODES
:
case
SORTID_MAX_NODES
:
...
...
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