diff --git a/lib/refrepo/input_loader.rb b/lib/refrepo/input_loader.rb index 9f70a7da26189fb41933fe82448af1dc7e7e35d4..4e28bd929d473941ad39e4e375cbf4e0dd3d06e9 100644 --- a/lib/refrepo/input_loader.rb +++ b/lib/refrepo/input_loader.rb @@ -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