Mentions légales du service

Skip to content
Snippets Groups Projects
Commit 93f502f0 authored by Lucas Nussbaum's avatar 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 b12906ed
No related branches found
No related tags found
No related merge requests found
Pipeline #247971 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
...@@ -360,6 +364,7 @@ class G5KHardwareGenerator < WikiGenerator ...@@ -360,6 +364,7 @@ class G5KHardwareGenerator < WikiGenerator
'Broadwell' => '2015', 'Broadwell' => '2015',
'Skylake' => '2016', 'Skylake' => '2016',
'Zen' => '2017', 'Zen' => '2017',
'Zen 2' => '2019',
'Cascade Lake-SP' => '2019', 'Cascade Lake-SP' => '2019',
'Vulcan' => '2018', 'Vulcan' => '2018',
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment