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
Pipeline #183144 passed with stages
in 6 minutes and 55 seconds
......@@ -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
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment