$search

TimerGPU Class Reference

GPU timer class. More...

#include <cudautils.h>

List of all members.

Public Member Functions

float read ()
 Stops time measuring.
 TimerGPU (cudaStream_t stream_=0)
 Constructor.
 ~TimerGPU ()

Public Attributes

cudaEvent_t start
 Start time.
cudaEvent_t stop
 Stop time.
cudaStream_t stream
 CUDA Stream.

Detailed Description

GPU timer class.

Definition at line 110 of file cudautils.h.


Constructor & Destructor Documentation

TimerGPU::TimerGPU ( cudaStream_t  stream_ = 0  )  [inline]

Constructor.

Set start time

Parameters:
stream_ CUDA Stream

Definition at line 122 of file cudautils.h.

TimerGPU::~TimerGPU (  )  [inline]

Definition at line 127 of file cudautils.h.


Member Function Documentation

float TimerGPU::read (  )  [inline]

Stops time measuring.

Returns:
Time elapsed

Definition at line 134 of file cudautils.h.


Member Data Documentation

cudaEvent_t TimerGPU::start

Start time.

Definition at line 113 of file cudautils.h.

cudaEvent_t TimerGPU::stop

Stop time.

Definition at line 115 of file cudautils.h.

cudaStream_t TimerGPU::stream

CUDA Stream.

Definition at line 117 of file cudautils.h.


The documentation for this class was generated from the following file:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Properties Friends Defines


active_realtime_segmentation
Author(s): Mårten Björkman. Maintained by Jeannette Bohg
autogenerated on Tue Mar 5 14:01:57 2013