12#include <cuda_runtime_api.h>
48 void initialize(std::size_t size);
53 std::vector<cudaEvent_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 cudaEvent_t objects to use in the library.
Definition event_pool.hpp:30
~event_pool()
Destructor.
Definition event_pool.cpp:60
cudaEvent_t create()
Get an event from the pool, creating a new one if necessary.
Definition event_pool.cpp:68
void free(cudaEvent_t event)
Return an event to the pool.
Definition event_pool.cpp:82
Main namespace for the vecmem classes/functions.
Definition atomic_ref.hpp:16