|
ARTEMIS
|
Defines a timer object to be used on GPU; measures summed thread cycles. More...
#include <KernelTimer.H>
Public Member Functions | |
| AMREX_GPU_DEVICE | KernelTimer (const bool do_timing, amrex::Real *cost) |
| AMREX_GPU_DEVICE | ~KernelTimer () |
| Destructor. More... | |
Defines a timer object to be used on GPU; measures summed thread cycles.
|
inline |
Constructor.
| [in] | do_timing | Controls whether timer is active. |
| [in,out] | cost | Pointer to cost which holds summed thread cycles (for performance, it is recommended to allocate pinned host memory). |
|
inline |
Destructor.