Mentions légales du service
Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
R
reference-repository
Manage
Activity
Members
Labels
Plan
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
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
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
grid5000
reference-repository
Commits
82ed81de
Commit
82ed81de
authored
7 years ago
by
Lucas Nussbaum
Browse files
Options
Downloads
Patches
Plain Diff
Add OAR properties for OPA
parent
6d7bf167
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
generators/oar-properties/lib/lib-oar-properties.rb
+12
-1
12 additions, 1 deletion
generators/oar-properties/lib/lib-oar-properties.rb
generators/wiki/lib/generators/oar_properties.rb
+12
-3
12 additions, 3 deletions
generators/wiki/lib/generators/oar_properties.rb
with
24 additions
and
4 deletions
generators/oar-properties/lib/lib-oar-properties.rb
+
12
−
1
View file @
82ed81de
...
...
@@ -97,7 +97,7 @@ def get_ref_node_properties_internal(cluster_uid, cluster, node_uid, node)
puts
"
#{
node_uid
}
: Warning - no rate info for the eth interface"
if
h
[
'eth_count'
]
>
0
&&
h
[
'eth_rate'
]
==
0
# INFINIBAND
ni_mountable
=
node
[
'network_adapters'
].
select
{
|
k
,
na
|
/^ib[0-9]*(\.[0-9]*)?$/
.
match
(
k
)
&&
(
na
[
'enabled'
]
==
true
&&
(
na
[
'mounted'
]
==
true
||
na
[
'mountable'
]
==
true
))
}.
values
ni_mountable
=
node
[
'network_adapters'
].
select
{
|
k
,
na
|
/^ib[0-9]*(\.[0-9]*)?$/
.
match
(
k
)
&&
(
na
[
'interface'
]
==
'InfiniBand'
and
na
[
'enabled'
]
==
true
&&
(
na
[
'mounted'
]
==
true
||
na
[
'mountable'
]
==
true
))
}.
values
ni_fastest
=
ni_mountable
.
max_by
{
|
na
|
na
[
'rate'
]
||
0
}
ib_map
=
{
0
=>
'NO'
,
10
=>
'SDR'
,
20
=>
'DDR'
,
40
=>
'QDR'
,
56
=>
'FDR'
}
...
...
@@ -106,6 +106,17 @@ def get_ref_node_properties_internal(cluster_uid, cluster, node_uid, node)
h
[
'ib'
]
=
ib_map
[
h
[
'ib_rate'
]]
puts
"
#{
node_uid
}
: Warning - no rate info for the ib interface"
if
h
[
'ib_count'
]
>
0
&&
h
[
'ib_rate'
]
==
0
# OMNIPATH
ni_mountable
=
node
[
'network_adapters'
].
select
{
|
k
,
na
|
/^ib[0-9]*(\.[0-9]*)?$/
.
match
(
k
)
&&
(
na
[
'interface'
]
==
'Omni-Path'
and
na
[
'enabled'
]
==
true
&&
(
na
[
'mounted'
]
==
true
||
na
[
'mountable'
]
==
true
))
}.
values
ni_fastest
=
ni_mountable
.
max_by
{
|
na
|
na
[
'rate'
]
||
0
}
h
[
'opa_count'
]
=
ni_mountable
.
length
h
[
'opa_rate'
]
=
ni_mountable
.
length
>
0
?
ni_fastest
[
'rate'
]
/
1_000_000_000
:
0
h
[
'opa'
]
=
h
[
'opa_count'
]
>
0
puts
"
#{
node_uid
}
: Warning - no rate info for the opa interface"
if
h
[
'opa_count'
]
>
0
&&
h
[
'opa_rate'
]
==
0
# MYRINET
ni_mountable
=
node
[
'network_adapters'
].
select
{
|
k
,
na
|
/^myri[0-9]*$/
.
match
(
k
)
&&
(
na
[
'enabled'
]
==
true
&&
(
na
[
'mounted'
]
==
true
||
na
[
'mountable'
]
==
true
))
}.
values
...
...
This diff is collapsed.
Click to expand it.
generators/wiki/lib/generators/oar_properties.rb
+
12
−
3
View file @
82ed81de
...
...
@@ -83,13 +83,22 @@ class OarPropertiesGenerator < WikiGenerator
"description"
=>
"the maximum rate of connected network interfaces in Gbps"
},
"ib"
=>
{
"description"
=>
"The technology of the
i
nfiniband interface"
"description"
=>
"The technology of the
I
nfiniband interface"
},
"ib_count"
=>
{
"description"
=>
"The number of Infiniband interfaces available"
},
"ib_rate"
=>
{
"description"
=>
"The rate of the connected infiniband interface in Gbps"
"description"
=>
"The rate of the connected Infiniband interface in Gbps"
},
"opa"
=>
{
"description"
=>
"Whether an Omni-Path interface is available"
},
"opa_count"
=>
{
"description"
=>
"The number of Omni-Path interfaces available"
},
"opa_rate"
=>
{
"description"
=>
"The rate of the connected Omni-Path interface in Gbps"
},
"myri"
=>
{
"description"
=>
"The type of Myrinet interfaces available"
...
...
@@ -134,7 +143,7 @@ class OarPropertiesGenerator < WikiGenerator
@@categories
=
{
"Job-related properties"
=>
[
"besteffort"
,
"deploy"
,
"production"
,
"cluster_priority"
,
"max_walltime"
],
"Hierarchy"
=>
[
"cluster"
,
"cpu"
,
"core"
,
"host"
,
"network_address"
,
"ip"
,
"switch"
],
"Hardware"
=>
[
"gpu"
,
"gpu_count"
,
"memnode"
,
"memcore"
,
"memcpu"
,
"disktype"
,
"disk_reservation_count"
,
"myri_rate"
,
"myri_count"
,
"myri"
,
"ib_rate"
,
"ib_count"
,
"ib"
,
"eth_rate"
,
"eth_count"
,
"cpufreq"
,
"cputype"
,
"cpucore"
,
"cpuarch"
,
"virtual"
,
"mic"
],
"Hardware"
=>
[
"gpu"
,
"gpu_count"
,
"memnode"
,
"memcore"
,
"memcpu"
,
"disktype"
,
"disk_reservation_count"
,
"myri_rate"
,
"myri_count"
,
"myri"
,
"ib_rate"
,
"ib_count"
,
"ib"
,
"opa"
,
"opa_rate"
,
"opa_count"
,
"eth_rate"
,
"eth_count"
,
"cpufreq"
,
"cputype"
,
"cpucore"
,
"cpuarch"
,
"virtual"
,
"mic"
],
"Miscellaneous"
=>
[
"wattmeter"
,
"nodemodel"
]
}
...
...
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