Specialization for Kokkos::HIP
that uses hipEvent_t
.
More...
#include <Event.hpp>
Classes | |
struct | EventDeleter |
To be used for the custom deleter of event. More... | |
Public Types | |
using | impl_event_t = hipEvent_t |
using | event_storage_t = std::unique_ptr<ihipEvent_t, EventDeleter> |
using | impl_clock_t |
Let's choose a steady clock. | |
using | impl_event_t |
Public Member Functions | |
Event () | |
void | record (const Kokkos::HIP &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::HIP
that uses hipEvent_t
.
using Kokkos::utils::timer::Event< Kokkos::HIP >::event_storage_t = std::unique_ptr<ihipEvent_t, EventDeleter> |
using Kokkos::utils::timer::Event< Kokkos::HIP >::impl_clock_t |
using Kokkos::utils::timer::Event< Kokkos::HIP >::impl_event_t |
using Kokkos::utils::timer::Event< Kokkos::HIP >::impl_event_t = hipEvent_t |
|
inline |
|
inline |
|
inline |
|
inlineprivate |
Measure the elapsed time in milliseconds.
As specified in https://rocm.docs.amd.com/projects/HIP/en/develop/doxygen/html/group___event.html.
|
inline |
|
inline |
|
inline |
impl_event_t Kokkos::utils::timer::Event< Kokkos::HIP >::event |
event_storage_t Kokkos::utils::timer::Event< Kokkos::HIP >::event = nullptr |