GPU timer class. More...
#include <cudautils.h>
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. |
GPU timer class.
Definition at line 110 of file cudautils.h.
TimerGPU::TimerGPU | ( | cudaStream_t | stream_ = 0 | ) | [inline] |
Constructor.
Set start time
stream_ | CUDA Stream |
Definition at line 122 of file cudautils.h.
TimerGPU::~TimerGPU | ( | ) | [inline] |
Definition at line 127 of file cudautils.h.
float TimerGPU::read | ( | ) | [inline] |
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.