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

#include <include/ryujin/base/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::Simulation< HD, PD, dim, Number >::Simulation().


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