Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
R
reference-repository
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
5
Merge Requests
5
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
grid5000
reference-repository
Commits
fad53bfa
Commit
fad53bfa
authored
Sep 15, 2016
by
Jérémie Gaidamour
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[dev] OAR gpu properties now refer to the gpu model
parent
b48844eb
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
4 deletions
+8
-4
generators/oar-properties/lib/lib-oar-properties.rb
generators/oar-properties/lib/lib-oar-properties.rb
+8
-4
No files found.
generators/oar-properties/lib/lib-oar-properties.rb
View file @
fad53bfa
...
...
@@ -81,12 +81,15 @@ def get_node_properties(cluster_uid, cluster, node_uid, node)
h
[
'memcpu'
]
=
node
[
'main_memory'
][
'ram_size'
]
/
node
[
'architecture'
][
'nb_procs'
]
/
MiB
h
[
'memnode'
]
=
node
[
'main_memory'
][
'ram_size'
]
/
MiB
node
[
'gpu'
]
||=
{}
h
[
'gpu'
]
=
case
node
[
'gpu'
][
'gpu'
]
when
true
;
true
;
when
false
;
false
when
nil
;
false
;
else
node
[
'gpu'
][
'gpu'
].
upcase
end
h
[
'gpu_count'
]
=
node
[
'gpu'
][
'gpu_count'
].
nil?
?
0
:
node
[
'gpu'
][
'gpu_count'
]
if
node
.
key?
(
'gpu'
)
&&
node
[
'gpu'
][
'gpu'
]
==
true
h
[
'gpu'
]
=
node
[
'gpu'
][
'gpu_model'
]
h
[
'gpu_count'
]
=
node
[
'gpu'
][
'gpu_count'
]
else
h
[
'gpu'
]
=
false
h
[
'gpu_count'
]
=
0
end
node
[
'monitoring'
]
||=
{}
h
[
'wattmeter'
]
=
case
node
[
'monitoring'
][
'wattmeter'
]
when
true
;
true
;
when
false
;
false
when
nil
;
false
;
else
node
[
'monitoring'
][
'wattmeter'
].
upcase
end
# h['rconsole'] = node['monitoring']['rconsole']
...
...
@@ -165,6 +168,7 @@ def ignore_keys()
# type: default
ignore_keys
=
[
"chassis"
,
"slash_16"
,
"slash_17"
,
"slash_18"
,
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment