@@ -117,15 +117,19 @@ def self.generate_summary_data(site, with_sites)
117
117
access_conditions << "<b>#{ queue } </b> queue"
118
118
end
119
119
access_conditions << '<b>[[Getting_Started#Selecting_specific_resources|exotic]]</b> job type' if cluster_hash . map { |_k , v | v [ 'exotic' ] } . first
120
- table_columns = ( with_sites == true ? [ 'Site' ] : [ ] ) + [ 'Cluster' , 'Access Condition' , 'Date of arrival' , { attributes : 'data-sort-type="number"' , text : 'Nodes' } , 'CPU' , { attributes : 'data-sort-type="number"' , text : 'Cores' } , { attributes : 'data-sort-type="number"' , text : 'Memory' } , { attributes : 'data-sort-type="number"' , text : 'Storage' } , { attributes : 'data-sort-type="number"' , text : 'Network' } ] + ( ( site_accelerators . zero? && with_sites == false ) ? [ ] : [ 'Accelerators' ] )
120
+ table_columns = [ ]
121
+ table_columns << ( with_sites == true ? [ { attributes : 'rowspan=2' , text : 'Site' } ] : [ ] ) + [ { attributes : 'rowspan=2' , text : 'Cluster' } , { attributes : 'rowspan=2' , text : 'Access Condition' } , { attributes : 'rowspan=2' , text : 'Date of arrival' } , { attributes : 'data-sort-type="number" rowspan=2' , text : 'Nodes' } , { attributes : 'colspan=4' , text : 'CPU' } , { attributes : 'data-sort-type="number" rowspan=2' , text : 'Memory' } , { attributes : 'data-sort-type="number" rowspan=2' , text : 'Storage' } , { attributes : 'data-sort-type="number" rowspan=2' , text : 'Network' } ] + ( ( site_accelerators . zero? && with_sites == false ) ? [ ] : [ { attributes : 'rowspan=2' , text : 'Accelerators' } ] )
122
+ table_columns << [ { attributes : 'data-sort-type="number"' , text : '#' } , 'Name' , { attributes : 'data-sort-type="number"' , text : 'Cores' } , 'Architecture' ]
121
123
data = partition ( cluster_hash )
122
124
table_data << ( with_sites == true ? [ "[[#{ site . capitalize } :Hardware|#{ site . capitalize } ]]" ] : [ ] ) + [
123
125
( with_sites == true ? "[[#{ site . capitalize } :Hardware##{ cluster_uid } " + "|#{ cluster_uid } ]]" : "[[##{ cluster_uid } " + "|#{ cluster_uid } ]]" ) ,
124
126
access_conditions . join ( ",<br/>" ) ,
125
127
cell_data ( data , 'date' ) ,
126
128
cluster_nodes ,
127
- cell_data ( data , 'num_processor_model' ) ,
129
+ cell_data ( data , 'cpus_per_node' ) ,
130
+ cell_data ( data , 'processor_model' ) ,
128
131
cell_data ( data , 'cores_per_cpu_str' ) ,
132
+ cell_data ( data , 'architecture' ) ,
129
133
sort_data ( data , 'ram_size' ) + ( !data [ 'pmem_size' ] . nil? ? " + #{ cell_data ( data , 'pmem_size' ) } [[PMEM]]" : '' ) ,
130
134
'data-sort-value="' + sort_data ( data , 'storage_size' ) + '"|' + cell_data ( data , 'storage' ) ,
131
135
'data-sort-value="' + sort_data ( data , 'network_throughput' ) + '"|' + cell_data ( data , 'used_networks' )
@@ -360,6 +364,7 @@ def get_hardware(sites)
360
364
hard [ 'cpus_per_node_str' ] = hard [ 'cpus_per_node' ] . to_s + ' ' + G5K . pluralize ( hard [ 'cpus_per_node' ] , 'CPU' ) + '/node'
361
365
hard [ 'cores_per_cpu' ] = node_hash [ 'architecture' ] [ 'nb_cores' ] / hard [ 'cpus_per_node' ]
362
366
hard [ 'cores_per_cpu_str' ] = hard [ 'cores_per_cpu' ] . to_s + ' ' + G5K . pluralize ( hard [ 'cores_per_cpu' ] , 'core' ) + '/CPU'
367
+ hard [ 'architecture' ] = node_hash [ 'architecture' ] [ 'platform_type' ]
363
368
exotic_archname = get_exotic_archname ( node_hash [ 'architecture' ] [ 'platform_type' ] )
364
369
hard [ 'num_processor_model' ] = ( hard [ 'cpus_per_node' ] == 1 ? '' : "#{ hard [ 'cpus_per_node' ] } x " ) + ( exotic_archname ? "#{ exotic_archname } " : '' ) + hard [ 'processor_model' ] . gsub ( ' ' , ' ' )
365
370
hard [ 'processor_description' ] = "#{ hard [ 'processor_model' ] } (#{ hard [ 'microarchitecture' ] } #{ hard [ 'processor_freq' ] ? ', ' + hard [ 'processor_freq' ] : '' } , #{ hard [ 'cpus_per_node_str' ] } , #{ hard [ 'cores_per_cpu_str' ] } )"
@@ -375,7 +380,7 @@ def get_hardware(sites)
375
380
if e [ 1 ] == 1
376
381
"<b>#{ size } #{ e [ 0 ] [ 'tech' ] } </b>"
377
382
else
378
- "<b>1 x #{ size } #{ e [ 0 ] [ 'tech' ] } </b>" + ' + ' + ( e [ 1 ] - 1 ) . to_s + " x #{ size } #{ e [ 0 ] [ 'tech' ] } " + ( e [ 0 ] [ 'reservation' ] ? '[[Disk_reservation|*]]' : '' )
383
+ "<b>#{ size } #{ e [ 0 ] [ 'tech' ] } </b>" + ' + ' + ( ( remainder = e [ 1 ] - 1 ) == 1 ? '' : " #{ remainder } x " ) + " #{ size } #{ e [ 0 ] [ 'tech' ] } " + ( e [ 0 ] [ 'reservation' ] ? '[[Disk_reservation|*]]' : '' )
379
384
end
380
385
else
381
386
if e [ 1 ] == 1
0 commit comments