CUDA-enabled GPU Time Measurement Controller. More...
#include <MeterPU.h>
Public Member Functions | |
CUDA_Time_Measurement_Controller () | |
~CUDA_Time_Measurement_Controller () | |
void | init () |
void | start () |
mark the start of a measurement phase/period. More... | |
void | stop () |
mark the end of a measurement phase/period. More... | |
void | calc () |
calculate the metric value between start() and stop(). More... | |
void | show_meter_reading () const |
Print the calculated metric value to standard output, requires an invocation of calc() already done. More... | |
CUDA_Time::ResultType const & | get_value () const |
Get calculated metric value, require calc() to be called already. More... | |
Private Attributes | |
cudaEvent_t | start_time |
cudaEvent_t | stop_time |
CUDA_Time::ResultType | meter_reading |
CUDA-enabled GPU Time Measurement Controller.
It internally uses cudaEventCreate() etc.
|
inline |
|
inline |
|
inlinevirtual |
calculate the metric value between start() and stop().
Implements MeterPU::Measurement_Controller.
|
inline |
Get calculated metric value, require calc() to be called already.
|
inline |
|
inlinevirtual |
Print the calculated metric value to standard output, requires an invocation of calc() already done.
Implements MeterPU::Measurement_Controller.
|
inlinevirtual |
mark the start of a measurement phase/period.
Implements MeterPU::Measurement_Controller.
|
inlinevirtual |
mark the end of a measurement phase/period.
Implements MeterPU::Measurement_Controller.
|
private |
|
private |
|
private |