Mentions légales du service

Skip to content
Snippets Groups Projects
Commit c4eb4250 authored by Lucas Nussbaum's avatar Lucas Nussbaum
Browse files

[dev] force clock_speed, nb_cores, core_flops to integer (Bug 12427)

parent de16113a
No related branches found
No related tags found
No related merge requests found
Pipeline #183144 passed
......@@ -295,8 +295,8 @@ def add_theorical_flops(h)
site['clusters'].each_pair do |cluster_uid, cluster|
cluster['nodes'].select { |k, v| v['status'] != 'retired' }.each_pair do |node_uid, node|
node['performance'] = {}
node['performance']['core_flops'] = node['processor']['clock_speed'] * 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']['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'].to_i * node['performance']['core_flops'].to_i
end
end
end
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment