Mentions légales du service

Skip to content
Snippets Groups Projects
Commit 41918861 authored by Baptiste Jonglez's avatar Baptiste Jonglez
Browse files

[lib] Don't fail if performance is not yet defined for a node

parent 1e61ea0e
No related branches found
No related tags found
No related merge requests found
......@@ -290,6 +290,7 @@ def add_theorical_flops(h)
h['sites'].each_pair do |site_uid, site|
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']
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