kerncraft/models/roofline.py
def conv_perf(self, performance):
        """Convert performance (FLOP/s) to other units, such as It/s or cy/CL."""
        clock = self.machine['clock']
        flops_per_it = sum(self.kernel._flops.values())
        it_s = performance/flops_per_it
        it_s.unit = 'It/s'
        element_size = self.kernel.datatypes_size[self.kernel.datatype]
        elements_per_cacheline = int(float(self.machine['cacheline size'])) / element_size
        cy_cl = clock/it_s*elements_per_cacheline
        cy_cl.unit = 'cy/CL'
        cy_it = clock/it_s
        cy_it.unit = 'cy/It'

        return {'It/s': it_s,
                'cy/CL': cy_cl,
                'cy/It': cy_it,
                'FLOP/s': performance}
def conv_perf(self, performance):
        """Convert performance (FLOP/s) to other units, such as It/s or cy/CL."""
        clock = self.machine['clock']
        flops_per_it = sum(self.kernel._flops.values())
        it_s = performance/flops_per_it
        it_s.unit = 'It/s'
        element_size = self.kernel.datatypes_size[self.kernel.datatype]
        elements_per_cacheline = int(float(self.machine['cacheline size'])) / element_size
        cy_cl = clock/it_s*elements_per_cacheline
        cy_cl.unit = 'cy/CL'
        cy_it = clock/it_s
        cy_it.unit = 'cy/It'

        return {'It/s': it_s,
                'cy/CL': cy_cl,
                'cy/It': cy_it,
                'FLOP/s': performance}
def conv_perf ( self , performance ) : clock = self . machine [ 'clock' ] flops_per_it = sum ( self . kernel . _flops . values ( ) ) it_s = performance / flops_per_it it_s . unit = 'It/s' element_size = self . kernel . datatypes_size [ self . kernel . datatype ] elements_per_cacheline = int ( float ( self . machine [ 'cacheline size' ] ) ) / element_size cy_cl = clock / it_s * elements_per_cacheline cy_cl . unit = 'cy/CL' cy_it = clock / it_s cy_it . unit = 'cy/It' return { 'It/s' : it_s , 'cy/CL' : cy_cl , 'cy/It' : cy_it , 'FLOP/s' : performance }
Convert performance (FLOP/s) to other units, such as It/s or cy/CL.
Convert performance ( FLOP / s ) to other units such as It / s or cy / CL .