10#include "vecmem/vecmem_cuda_export.hpp"
74 std::unique_ptr<impl> m_impl;
An allocator class that wraps a memory resource.
Definition allocator.hpp:37
Wrapper class for cudaStream_t.
Definition stream_wrapper.hpp:24
VECMEM_CUDA_EXPORT stream_wrapper(stream_wrapper &&parent) noexcept
Move constructor.
VECMEM_CUDA_EXPORT stream_wrapper & operator=(const stream_wrapper &rhs)
Copy assignment.
Definition stream_wrapper.cpp:114
VECMEM_CUDA_EXPORT stream_wrapper & operator=(stream_wrapper &&rhs) noexcept
Move assignment.
VECMEM_CUDA_EXPORT void * stream() const
Access a typeless pointer to the managed cudaStream_t object.
Definition stream_wrapper.cpp:125
static constexpr int INVALID_DEVICE
Invalid/default device identifier.
Definition stream_wrapper.hpp:28
VECMEM_CUDA_EXPORT std::string device_name() const
Get the name of the device that the stream operates on.
Definition stream_wrapper.cpp:136
VECMEM_CUDA_EXPORT ~stream_wrapper()
Destructor.
VECMEM_CUDA_EXPORT void synchronize()
Wait for all queued tasks from the stream to complete.
Definition stream_wrapper.cpp:130
Main namespace for the vecmem classes/functions.
Definition atomic_ref.hpp:16
Definition stream_wrapper.cpp:72