Skip to content

Commit

Permalink
[fpga/wiki/servan] Add fpga on wiki
Browse files Browse the repository at this point in the history
  • Loading branch information
berardbe committed May 17, 2022
1 parent c3b5729 commit 1258961
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions lib/refrepo/gen/wiki/generators/hardware.rb
Expand Up @@ -154,6 +154,10 @@ def generate_totals
}

# Accelerators
f = node_hash['other_devices']
fpga_families = {}
fpga_families[["#{f['fpga0']['vendor']} #{f['fpga0]']['model']}"]] if f and f['fpga0'].exists?

m = node_hash['mic']

mic_families = {}
Expand Down Expand Up @@ -189,12 +193,12 @@ def generate_totals
}
end

gpu_families.merge(mic_families).sort.to_h.each { |k, v|
gpu_families.merge(mic_families).merge(fpga_families).sort.to_h.each { |k, v|
init(data, 'acc_families', k)
data['acc_families'][k][site_uid] += v
}

gpu_details.merge(mic_details).sort.to_h.each { |k, v|
gpu_details.merge(mic_details).merge(fpga_families).sort.to_h.each { |k, v|
init(data, 'acc_models', k)
data['acc_models'][k][site_uid] += v[0]

Expand Down

0 comments on commit 1258961

Please sign in to comment.