21 #include <rmm/detail/export.hpp>
27 namespace RMM_EXPORT rmm {
44 static constexpr std::size_t default_size{16};
88 std::
size_t get_pool_size() const noexcept;
92 mutable std::atomic_size_t next_stream{};
A pool of CUDA streams.
Definition: cuda_stream_pool.hpp:42
cuda_stream_pool(std::size_t pool_size=default_size)
Construct a new cuda stream pool object of the given non-zero size.
rmm::cuda_stream_view get_stream() const noexcept
Get a cuda_stream_view of a stream in the pool.
Strongly-typed non-owning wrapper for CUDA streams with default constructor.
Definition: cuda_stream_view.hpp:39
Owning wrapper for a CUDA stream.
Definition: cuda_stream.hpp:39