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
91ea68ad
Commit
91ea68ad
authored
8 years ago
by
Brian Christiansen
Browse files
Options
Downloads
Patches
Plain Diff
Display configured and allocated tres on nodes
In scontrol show nodes.
parent
bd84687b
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/api/node_info.c
+11
-0
11 additions, 0 deletions
src/api/node_info.c
with
12 additions
and
0 deletions
NEWS
+
1
−
0
View file @
91ea68ad
...
...
@@ -30,6 +30,7 @@ documents those changes that are of interest to users and administrators.
-- Fix for node's available tres array getting filled in with configured gres
model types.
-- Log if job --bb option contains any unrecognized content.
-- Display configured and allocated tres for nodes in scontrol show nodes.
* Changes in Slurm 17.02.0pre1
==============================
...
...
This diff is collapsed.
Click to expand it.
src/api/node_info.c
+
11
−
0
View file @
91ea68ad
...
...
@@ -126,6 +126,7 @@ slurm_sprint_node_table (node_info_t * node_ptr,
int
idle_cpus
;
uint32_t
cluster_flags
=
slurmdb_setup_cluster_flags
();
uint32_t
alloc_memory
;
char
*
node_alloc_tres
=
NULL
;
char
*
line_end
=
(
one_liner
)
?
" "
:
"
\n
"
;
if
(
node_scaling
)
...
...
@@ -315,7 +316,17 @@ slurm_sprint_node_table (node_info_t * node_ptr,
}
else
{
xstrcat
(
out
,
"SlurmdStartTime=None"
);
}
xstrcat
(
out
,
line_end
);
/****** TRES Line ******/
select_g_select_nodeinfo_get
(
node_ptr
->
select_nodeinfo
,
SELECT_NODEDATA_TRES_ALLOC_FMT_STR
,
NODE_STATE_ALLOCATED
,
&
node_alloc_tres
);
xstrfmtcat
(
out
,
"CfgTRES=%s"
,
node_ptr
->
tres_fmt_str
);
xstrcat
(
out
,
line_end
);
xstrfmtcat
(
out
,
"AllocTRES=%s"
,
(
node_alloc_tres
)
?
node_alloc_tres
:
""
);
xfree
(
node_alloc_tres
);
xstrcat
(
out
,
line_end
);
/****** Power Management Line ******/
...
...
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