Mentions légales du service

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

[gen:wiki] add TFLOPS to the global summary (and also add missing Zen 2...

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