kokkos-utils 0.0.1
 
Loading...
Searching...
No Matches
Kokkos::utils::callbacks::EnqueuedEventWithLaunchTimer< Exec > Struct Template Reference

Timer for events that are enqueued on exec. This timer also measures the launch time. More...

#include <EnqueuedEventWithLaunchTimer.hpp>

Public Member Functions

template<EnqueuedEvent EventType>
void start (const EventType &event)
 Start the timer. The event must be on exec.
 
template<Event EventType>
void stop (const EventType &)
 Stop the timer.
 
template<typename Duration = Kokkos::utils::timer::milliseconds>
Duration duration ()
 
template<typename Duration = Kokkos::utils::timer::milliseconds>
Duration launch ()
 

Public Attributes

Exec exec
 
uint32_t dev_id = Kokkos::Tools::Experimental::device_id(exec)
 
Kokkos::utils::timer::Timer< Exec > timer {}
 
Kokkos::utils::timer::Timer< void > timer_launch {}
 

Detailed Description

template<Kokkos::utils::concepts::ExecutionSpace Exec>
struct Kokkos::utils::callbacks::EnqueuedEventWithLaunchTimer< Exec >

Timer for events that are enqueued on exec. This timer also measures the launch time.

Definition at line 14 of file EnqueuedEventWithLaunchTimer.hpp.

Member Function Documentation

◆ duration()

template<typename Duration = Kokkos::utils::timer::milliseconds>
Duration Kokkos::utils::callbacks::EnqueuedEventWithLaunchTimer< Exec >::duration ( )
inline

Definition at line 36 of file EnqueuedEventWithLaunchTimer.hpp.

◆ launch()

template<typename Duration = Kokkos::utils::timer::milliseconds>
Duration Kokkos::utils::callbacks::EnqueuedEventWithLaunchTimer< Exec >::launch ( )
inline

Definition at line 39 of file EnqueuedEventWithLaunchTimer.hpp.

◆ start()

template<EnqueuedEvent EventType>
void Kokkos::utils::callbacks::EnqueuedEventWithLaunchTimer< Exec >::start ( const EventType & event)
inline

Start the timer. The event must be on exec.

Definition at line 18 of file EnqueuedEventWithLaunchTimer.hpp.

◆ stop()

template<Event EventType>
void Kokkos::utils::callbacks::EnqueuedEventWithLaunchTimer< Exec >::stop ( const EventType & )
inline

Stop the timer.

Definition at line 29 of file EnqueuedEventWithLaunchTimer.hpp.

Member Data Documentation

◆ dev_id

uint32_t Kokkos::utils::callbacks::EnqueuedEventWithLaunchTimer< Exec >::dev_id = Kokkos::Tools::Experimental::device_id(exec)

Definition at line 42 of file EnqueuedEventWithLaunchTimer.hpp.

◆ exec

◆ timer

◆ timer_launch


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