![]() |
COMPASS
5.4.4
End-to-end AO simulation tool using GPU acceleration
|
a simple timer for CUDA kernel. More...
#include <carma_timer.h>
Public Member Functions | |
CarmaTimer () | |
~CarmaTimer () | |
void | start () |
void | reset () |
void | stop () |
void | set_stream (cudaStream_t newStream) |
double | elapsed () |
Protected Attributes | |
cudaEvent_t | start_event |
cudaEvent_t | stop_event |
cudaStream_t | stream = 0 |
double | total_time |
a simple timer for CUDA kernel.
this class provides the timer features to CarmaObj
Definition at line 27 of file carma_timer.h.
CarmaTimer::CarmaTimer | ( | ) |
Definition at line 34 of file carma_timer.h.
CarmaTimer::~CarmaTimer | ( | ) |
Definition at line 40 of file carma_timer.h.
double CarmaTimer::elapsed | ( | ) |
return elapsed time in seconds (as record in total_time)
Definition at line 60 of file carma_timer.h.
void CarmaTimer::reset | ( | ) |
Definition at line 47 of file carma_timer.h.
void CarmaTimer::set_stream | ( | cudaStream_t | newStream | ) |
Definition at line 58 of file carma_timer.h.
void CarmaTimer::start | ( | ) |
Definition at line 45 of file carma_timer.h.
void CarmaTimer::stop | ( | ) |
stop timer and accumulate time in seconds
Definition at line 50 of file carma_timer.h.
|
protected |
Definition at line 29 of file carma_timer.h.
|
protected |
Definition at line 29 of file carma_timer.h.
|
protected |
Definition at line 30 of file carma_timer.h.
|
protected |
Definition at line 31 of file carma_timer.h.