9 #include <rmm/detail/export.hpp>
11 #include <cuda/stream>
34 static constexpr std::size_t default_size{16};
74 cuda::stream_ref get_stream(std::
size_t stream_id) const;
83 std::
size_t get_pool_size() const noexcept;
87 mutable std::atomic_size_t next_stream{};
A pool of CUDA streams.
Definition: cuda_stream_pool.hpp:32
cuda_stream_pool(std::size_t pool_size=default_size, cuda_stream::flags flags=cuda_stream::flags::sync_default)
Construct a new CUDA stream pool object of the given non-zero size.
cuda::stream_ref get_stream() const noexcept
Get a cuda::stream_ref of a stream in the pool.
Owning wrapper for a CUDA stream.
Definition: cuda_stream.hpp:29
flags
stream creation flags.
Definition: cuda_stream.hpp:34
The top-level namespace containing all RMM functionality.