![]() |
COMPASS
5.0.0
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 52 of file carma_timer.h.
CarmaTimer::CarmaTimer | ( | ) |
Definition at line 59 of file carma_timer.h.
CarmaTimer::~CarmaTimer | ( | ) |
Definition at line 65 of file carma_timer.h.
double CarmaTimer::elapsed | ( | ) |
return elapsed time in seconds (as record in total_time)
Definition at line 85 of file carma_timer.h.
void CarmaTimer::reset | ( | ) |
Definition at line 72 of file carma_timer.h.
void CarmaTimer::set_stream | ( | cudaStream_t | newStream | ) |
Definition at line 83 of file carma_timer.h.
void CarmaTimer::start | ( | ) |
Definition at line 70 of file carma_timer.h.
void CarmaTimer::stop | ( | ) |
stop timer and accumulate time in seconds
Definition at line 75 of file carma_timer.h.
|
protected |
Definition at line 54 of file carma_timer.h.
|
protected |
Definition at line 54 of file carma_timer.h.
|
protected |
Definition at line 55 of file carma_timer.h.
|
protected |
Definition at line 56 of file carma_timer.h.