QUDA  v0.7.0
A library for QCD on GPUs
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Public Member Functions | Public Attributes | List of all members
quda::Timer Struct Reference

#include <quda_internal.h>

Public Member Functions

 Timer ()
 
void Start ()
 
void Stop ()
 
double Last ()
 

Public Attributes

double time
 
double last
 
timeval start
 
timeval stop
 
bool running
 
int count
 

Detailed Description

Use this for recording a fine-grained profile of a QUDA algorithm. This uses host-side measurement, so should be used for timing fully host-device synchronous algorithms.Enumeration type used for writing a simple but extensible profiling framework.

Definition at line 98 of file quda_internal.h.

Constructor & Destructor Documentation

quda::Timer::Timer ( )
inline

Definition at line 117 of file quda_internal.h.

Member Function Documentation

double quda::Timer::Last ( )
inline

Definition at line 138 of file quda_internal.h.

void quda::Timer::Start ( )
inline

Definition at line 119 of file quda_internal.h.

void quda::Timer::Stop ( )
inline

Definition at line 125 of file quda_internal.h.

Member Data Documentation

int quda::Timer::count

Definition at line 115 of file quda_internal.h.

double quda::Timer::last

Used to store when the timer was last started

Definition at line 103 of file quda_internal.h.

bool quda::Timer::running

Keep track of number of calls

Definition at line 112 of file quda_internal.h.

timeval quda::Timer::start

Used to store when the timer was last stopped

Definition at line 106 of file quda_internal.h.

timeval quda::Timer::stop

Are we currently timing?

Definition at line 109 of file quda_internal.h.

double quda::Timer::time

< The cumulative sum of time The last recorded time interval

Definition at line 100 of file quda_internal.h.


The documentation for this struct was generated from the following file: