Bug 2120 - ajouter des stats sur l'évolution du cluster
- improvement : the figures can now be saved as svg files. This mechanism will be used by the intranet to display the cluster evolution graphs - also removed debug prints that pollute stdout
This commit is contained in:
parent
3ba55f8758
commit
7ca596a609
|
@ -77,11 +77,11 @@ class Inventory( object ):
|
|||
num_cores = int(self._sql_reader.get_table_attr( 'cpu_specs', 'cpu_model', cpu_model, 'num_cores' ))
|
||||
clock_speed = float(self._sql_reader.get_table_attr( 'cpu_specs', 'cpu_model', cpu_model, 'clock_speed' ))
|
||||
dflops_per_core_per_cycle = int(self._sql_reader.get_table_attr('cpu_specs', 'cpu_model', cpu_model, 'dflops_per_core_per_cycle' ))
|
||||
print(num_cores, clock_speed, dflops_per_core_per_cycle)
|
||||
# print(num_cores, clock_speed, dflops_per_core_per_cycle)
|
||||
return clock_speed * dflops_per_core_per_cycle * num_cores
|
||||
|
||||
def get_computer_dflops(self, computer_serial_number):
|
||||
print(computer_serial_number)
|
||||
# print(computer_serial_number)
|
||||
num_cpus = int(self._sql_reader.get_table_attr( 'computer_to_cpu', 'serial_number', computer_serial_number, 'num_cpu' ))
|
||||
cpu_model = self._sql_reader.get_table_attr( 'computer_to_cpu', 'serial_number', computer_serial_number, 'cpu_model' )
|
||||
flops = num_cpus * self.get_cpu_dflops( cpu_model )
|
||||
|
|
Loading…
Reference in New Issue