Mentions légales du service

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

Merge branch 'wiki-summary' into 'master'

[gen:wiki] add TFLOPS to the global summary (and also add missing Zen 2 architecture in hardware.rb)

See merge request !230
parents f0c07a3d 89dd0eec
No related branches found
No related tags found
1 merge request!230[gen:wiki] add TFLOPS to the global summary (and also add missing Zen 2 architecture in hardware.rb)
Pipeline #250662 passed
...@@ -33,6 +33,7 @@ class G5KHardwareGenerator < WikiGenerator ...@@ -33,6 +33,7 @@ class G5KHardwareGenerator < WikiGenerator
storage_space = 0 storage_space = 0
ram = 0 ram = 0
pmem = 0 pmem = 0
flops = 0
@global_hash['sites'].sort.to_h.each do |site_uid, site_hash| @global_hash['sites'].sort.to_h.each do |site_uid, site_hash|
clusters += site_hash['clusters'].length clusters += site_hash['clusters'].length
...@@ -51,9 +52,11 @@ class G5KHardwareGenerator < WikiGenerator ...@@ -51,9 +52,11 @@ class G5KHardwareGenerator < WikiGenerator
node_hash['storage_devices'].each do |i| node_hash['storage_devices'].each do |i|
storage_space += i['size'] storage_space += i['size']
end end
flops += node_hash['performance']['node_flops']
end end
end end
end end
tflops = sprintf("%.1f", flops.to_f / (10**12))
return <<-EOF return <<-EOF
= Summary = = Summary =
* #{sites} sites * #{sites} sites
...@@ -63,6 +66,7 @@ class G5KHardwareGenerator < WikiGenerator ...@@ -63,6 +66,7 @@ class G5KHardwareGenerator < WikiGenerator
* #{gpus} GPUs * #{gpus} GPUs
* #{G5K.get_size(ram)} RAM + #{G5K.get_size(pmem)} PMEM * #{G5K.get_size(ram)} RAM + #{G5K.get_size(pmem)} PMEM
* #{ssds} SSDs and #{hdds} HDDs on nodes (total: #{G5K.get_size(storage_space, 'metric')}) * #{ssds} SSDs and #{hdds} HDDs on nodes (total: #{G5K.get_size(storage_space, 'metric')})
* #{tflops} TFLOPS (excluding GPUs)
EOF EOF
end end
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment