12#include <hip/hip_runtime_api.h>
48 void initialize(std::size_t size);
53 std::vector<hipEvent_t> m_pool;
55 std::size_t m_used_events = 0;
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:82
hipEvent_t create()
Get an event from the pool, creating a new one if necessary.
Definition event_pool.cpp:68
~event_pool()
Destructor.
Definition event_pool.cpp:60
Main namespace for the vecmem classes/functions.
Definition atomic_ref.hpp:16