ryujin 2.1.1 revision ee5cbcbf2346c1299c942d0e1f13b46449973c18
Loading...
Searching...
No Matches
Classes | Static Public Member Functions | List of all members
ryujin::DeviceTimer Class Reference

#include <source/computing_timer.h>

Classes

class  Scope
 

Static Public Member Functions

static double seconds ()
 
static std::uint64_t n_kernels ()
 
static void reinit ()
 

Detailed Description

Definition at line 128 of file computing_timer.h.

Member Function Documentation

◆ seconds()

static double ryujin::DeviceTimer::seconds ( )
inlinestatic

The accumulated wall time (in seconds) spent executing device kernels. The value increases monotonically since the last reinit().

Definition at line 154 of file computing_timer.h.

◆ n_kernels()

static std::uint64_t ryujin::DeviceTimer::n_kernels ( )
inlinestatic

The number of device kernels that have been launched so far.

Definition at line 162 of file computing_timer.h.

◆ reinit()

static void ryujin::DeviceTimer::reinit ( )
inlinestatic

Reset the accumulated device time and the kernel counter back to zero.

Definition at line 170 of file computing_timer.h.

Referenced by ryujin::TimeLoop< Description, dim, Number >::run().


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