File tree Expand file tree Collapse file tree 1 file changed +9
-7
lines changed
lib/refrepo/gen/wiki/generators Expand file tree Collapse file tree 1 file changed +9
-7
lines changed Original file line number Diff line number Diff line change @@ -162,15 +162,15 @@ def generate_totals
162
162
# Accelerators
163
163
f = node_hash [ 'other_devices' ]
164
164
fpga_families = { }
165
- fpga_families [ [ "#{ f [ 'fpga0' ] [ 'vendor' ] } ( #{ f [ 'fpga0' ] [ 'type' ] } ) " ] ] = 1 if f and f [ 'fpga0' ]
165
+ fpga_families [ [ "#{ f [ 'fpga0' ] [ 'vendor' ] } #{ f [ 'fpga0' ] [ 'type' ] . upcase } " ] ] = 1 if f and f [ 'fpga0' ]
166
166
fpga_details = { }
167
167
# We don't have information about the number of cores, by default we add it manually to 0
168
- fpga_details [ [ "#{ f [ 'fpga0' ] [ 'vendor' ] } #{ f [ 'fpga0' ] [ 'model' ] } ( #{ f [ 'fpga0' ] [ 'type' ] } ) " ] ] = [ f [ 'fpga0' ] [ 'count' ] , f [ 'fpga0' ] [ 'core' ] ] if f and f [ 'fpga0' ]
168
+ fpga_details [ [ "#{ f [ 'fpga0' ] [ 'vendor' ] } #{ f [ 'fpga0' ] [ 'model' ] } " ] ] = [ f [ 'fpga0' ] [ 'count' ] , f [ 'fpga0' ] [ 'core' ] ] if f and f [ 'fpga0' ]
169
169
170
170
m = node_hash [ 'mic' ]
171
171
172
172
mic_families = { }
173
- mic_families [ [ m [ 'mic_vendor' ] ] ] = m [ 'mic_count' ] if m and m [ 'mic' ]
173
+ mic_families [ [ "Intel MIC" ] ] = m [ 'mic_count' ] if m and m [ 'mic' ]
174
174
mic_details = { }
175
175
mic_details [ [ "#{ m [ 'mic_vendor' ] } #{ m [ 'mic_model' ] } " ] ] = [ m [ 'mic_count' ] , m [ 'mic_cores' ] ] if m and m [ 'mic' ]
176
176
@@ -180,17 +180,19 @@ def generate_totals
180
180
unless lg . nil?
181
181
lg . each { |g |
182
182
d = g [ 1 ]
183
+ vendor_families = "#{ d [ 'vendor' ] } GPU"
183
184
vendor = d [ 'vendor' ]
184
185
cmodel = d [ 'model' ]
185
186
model = cmodel
186
187
nbcores = GPURef . getNumberOfCoresFor ( cmodel )
187
188
188
- family = gpu_families [ [ vendor ] ]
189
+ family = gpu_families [ [ vendor_families ] ]
189
190
if family . nil?
190
- gpu_families [ [ vendor ] ] = 1
191
+ gpu_families [ [ vendor_families ] ] = 1
191
192
else
192
- gpu_families [ [ vendor ] ] += 1
193
- end
193
+ gpu_families [ [ vendor_families ] ] += 1
194
+ end
195
+
194
196
195
197
details = gpu_details [ [ "#{ vendor } #{ model } " ] ]
196
198
You can’t perform that action at this time.
0 commit comments