Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
grid5000
reference-repository
Commits
c4eb4250
Commit
c4eb4250
authored
Nov 03, 2020
by
Lucas Nussbaum
Browse files
[dev] force clock_speed, nb_cores, core_flops to integer (Bug 12427)
parent
de16113a
Pipeline
#183144
passed with stages
in 6 minutes and 55 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
lib/refrepo/input_loader.rb
View file @
c4eb4250
...
@@ -295,8 +295,8 @@ def add_theorical_flops(h)
...
@@ -295,8 +295,8 @@ def add_theorical_flops(h)
site
[
'clusters'
].
each_pair
do
|
cluster_uid
,
cluster
|
site
[
'clusters'
].
each_pair
do
|
cluster_uid
,
cluster
|
cluster
[
'nodes'
].
select
{
|
k
,
v
|
v
[
'status'
]
!=
'retired'
}.
each_pair
do
|
node_uid
,
node
|
cluster
[
'nodes'
].
select
{
|
k
,
v
|
v
[
'status'
]
!=
'retired'
}.
each_pair
do
|
node_uid
,
node
|
node
[
'performance'
]
=
{}
node
[
'performance'
]
=
{}
node
[
'performance'
][
'core_flops'
]
=
node
[
'processor'
][
'clock_speed'
]
*
get_flops_per_cycle
(
node
[
'processor'
][
'microarchitecture'
],
node
[
'processor'
][
'other_description'
])
node
[
'performance'
][
'core_flops'
]
=
node
[
'processor'
][
'clock_speed'
]
.
to_i
*
get_flops_per_cycle
(
node
[
'processor'
][
'microarchitecture'
],
node
[
'processor'
][
'other_description'
])
node
[
'performance'
][
'node_flops'
]
=
node
[
'architecture'
][
'nb_cores'
]
*
node
[
'performance'
][
'core_flops'
]
node
[
'performance'
][
'node_flops'
]
=
node
[
'architecture'
][
'nb_cores'
]
.
to_i
*
node
[
'performance'
][
'core_flops'
]
.
to_i
end
end
end
end
end
end
...
...
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