paleo/profilers/flops_profiler.py
def _estimate_comp_time(self, flops):
        """Return estimated time in milliseconds."""
        if not flops or flops == 0:
            return 0
        gflops = flops / (10 ** 9)
        time_in_sec = gflops / self._device.peek_gflop
        time_in_ms = time_in_sec * (10 ** 3)
        clock_time_in_ms = 1 / self._device.clock / (10 ** 3)
        # PPP for computation, since we estimated form the full time.
        time_in_ms /= self.options.ppp_comp
        return max(clock_time_in_ms, time_in_ms)
Return estimated time in milliseconds.
Return estimated time in milliseconds.
Return estimated time in milliseconds .
def _estimate_comp_time(self, flops):
        if not flops or flops == 0:
            return 0
        gflops = flops / (10 ** 9)
        time_in_sec = gflops / self._device.peek_gflop
        time_in_ms = time_in_sec * (10 ** 3)
        clock_time_in_ms = 1 / self._device.clock / (10 ** 3)
        time_in_ms /= self.options.ppp_comp
        return max(clock_time_in_ms, time_in_ms)
def _estimate_comp_time ( self , flops ) : if not flops or flops == 0 : return 0 gflops = flops / ( 10 ** 9 ) time_in_sec = gflops / self . _device . peek_gflop time_in_ms = time_in_sec * ( 10 ** 3 ) clock_time_in_ms = 1 / self . _device . clock / ( 10 ** 3 ) time_in_ms /= self . options . ppp_comp return max ( clock_time_in_ms , time_in_ms )
Return estimated time in milliseconds.
Return estimated time in milliseconds .
"""Return estimated time in milliseconds.""" # PPP for computation, since we estimated form the full time.
self
flops