Specialization for Kokkos::Cuda that uses cudaEvent_t.
More...
#include <Event.hpp>
Classes | |
| struct | EventDeleter |
| To be used for the custom deleter of event. More... | |
Public Types | |
| using | impl_event_t = cudaEvent_t |
| using | event_storage_t = std::unique_ptr<CUevent_st, EventDeleter> |
| using | impl_clock_t |
| Let's choose a steady clock. | |
| using | impl_event_t |
Public Member Functions | |
| Event () | |
| void | record (const Kokkos::Cuda &exec) |
Record this event in the execution space instance exec. | |
| template<typename Duration = milliseconds> | |
| Duration | duration (Event &other) |
| void | record () |
| Record this event. | |
| void | record (const Exec &) |
| Duration | duration (const Event &other) const |
Get a Duration object between this event and other. | |
Public Attributes | |
| event_storage_t | event = nullptr |
| impl_event_t | event |
Private Member Functions | |
| float | elapsed (Event &other) |
| Measure the elapsed time in milliseconds. | |
Specialization for Kokkos::Cuda that uses cudaEvent_t.
| using Kokkos::utils::timer::Event< Kokkos::Cuda >::event_storage_t = std::unique_ptr<CUevent_st, EventDeleter> |
| using Kokkos::utils::timer::Event< Kokkos::Cuda >::impl_clock_t |
| using Kokkos::utils::timer::Event< Kokkos::Cuda >::impl_event_t = cudaEvent_t |
| using Kokkos::utils::timer::Event< Kokkos::Cuda >::impl_event_t |
|
inline |
|
inline |
|
inline |
|
inlineprivate |
Measure the elapsed time in milliseconds.
As specified in https://docs.nvidia.com/cuda/cuda-runtime-api/group__CUDART__EVENT.html.
|
inline |
|
inline |
|
inline |
| event_storage_t Kokkos::utils::timer::Event< Kokkos::Cuda >::event = nullptr |
| impl_event_t Kokkos::utils::timer::Event< Kokkos::Cuda >::event |