def conv_cy(self, cy_cl):
if not isinstance(cy_cl, PrefixedUnit):<EOL><INDENT>cy_cl = PrefixedUnit(cy_cl, '<STR_LIT>', '<STR_LIT>')<EOL><DEDENT>clock = self.machine['<STR_LIT>']<EOL>element_size = self.kernel.datatypes_size[self.kernel.datatype]<EOL>elements_per_cacheline = int(self.machine['<STR_LIT>']) // element_size<EOL>it_s = clock/cy_cl*elements_per_cacheline<EOL>it_s.unit = '<STR_LIT>'<EOL>flops_per_it = sum(self.kernel._flops.values())<EOL>performance = it_s*flops_per_it<EOL>performance.unit = '<STR_LIT>'<EOL>cy_it = cy_cl*elements_per_cacheline<EOL>cy_it.unit = '<STR_LIT>'<EOL>return {'<STR_LIT>': it_s,<EOL>'<STR_LIT>': cy_cl,<EOL>'<STR_LIT>': cy_it,<EOL>'<STR_LIT>': performance}<EOL>
Convert cycles (cy/CL) to other units, such as FLOP/s or It/s.