pyrqa/opencl.py
def convert_events_runtime(events):
        """
        Convert OpenCL events runtime to seconds.

        :param events: List of OpenCL events.
        :returns: Cumulated runtime in seconds.
        :rtype: Float value.
        """
        runtime = .0
        for event in events:
            tmp = event.get_profiling_info(cl.profiling_info.END) - event.get_profiling_info(cl.profiling_info.QUEUED)
            if tmp > 0:
                runtime += tmp

        return np.float64(runtime) * math.pow(10, -9)

        Convert OpenCL events runtime to seconds.

        :param events: List of OpenCL events.
        :returns: Cumulated runtime in seconds.
        :rtype: Float value.
        
Convert OpenCL events runtime to seconds.
Convert OpenCL events runtime to seconds .
def convert_events_runtime(events):
        runtime = .0
        for event in events:
            tmp = event.get_profiling_info(cl.profiling_info.END) - event.get_profiling_info(cl.profiling_info.QUEUED)
            if tmp > 0:
                runtime += tmp
        return np.float64(runtime) * math.pow(10, -9)
def convert_events_runtime ( events ) : runtime = .0 for event in events : tmp = event . get_profiling_info ( cl . profiling_info . END ) - event . get_profiling_info ( cl . profiling_info . QUEUED ) if tmp > 0 : runtime += tmp return np . float64 ( runtime ) * math . pow ( 10 , - 9 )
Convert OpenCL events runtime to seconds.
Convert OpenCL events runtime to seconds .
"""
        Convert OpenCL events runtime to seconds.

        :param events: List of OpenCL events.
        :returns: Cumulated runtime in seconds.
        :rtype: Float value.
        """
Cumulated runtime in seconds.
Cumulated runtime in seconds .
Float value.
events
List of OpenCL events.
List of OpenCL events .