12#include <hip/hip_runtime_api.h>
45 std::vector<hipEvent_t> m_pool;
47 std::size_t m_used_events;
An allocator class that wraps a memory resource.
Definition allocator.hpp:37
Pool of hipEvent_t objects to use in the library.
Definition event_pool.hpp:30
void free(hipEvent_t event)
Return an event to the pool.
Definition event_pool.cpp:72
hipEvent_t create()
Get an event from the pool, creating a new one if necessary.
Definition event_pool.cpp:56
~event_pool()
Destructor.
Definition event_pool.cpp:48
Main namespace for the vecmem classes/functions.
Definition atomic_ref.hpp:16