QUDA  v0.5.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
 

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 85 of file quda_internal.h.

Constructor & Destructor Documentation

quda::Timer::Timer ( )
inline

Definition at line 101 of file quda_internal.h.

Member Function Documentation

double quda::Timer::Last ( )
inline

Definition at line 121 of file quda_internal.h.

void quda::Timer::Start ( )
inline

Definition at line 103 of file quda_internal.h.

void quda::Timer::Stop ( )
inline

Definition at line 109 of file quda_internal.h.

Member Data Documentation

double quda::Timer::last

Used to store when the timer was last started

Definition at line 92 of file quda_internal.h.

bool quda::Timer::running

Definition at line 99 of file quda_internal.h.

timeval quda::Timer::start

Used to store when the timer was last stopped

Definition at line 95 of file quda_internal.h.

timeval quda::Timer::stop

Are we currently timing?

Definition at line 98 of file quda_internal.h.

double quda::Timer::time

< The cumulative sum of time The last recorded time interval

Definition at line 89 of file quda_internal.h.


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