RMM
23.12
RAPIDS Memory Manager
|
Strongly-typed non-owning wrapper for CUDA streams with default constructor. More...
#include <cuda_stream_view.hpp>
Public Member Functions | |
constexpr | cuda_stream_view (cuda_stream_view const &)=default |
Default copy constructor. | |
constexpr | cuda_stream_view (cuda_stream_view &&)=default |
Default move constructor. | |
constexpr cuda_stream_view & | operator= (cuda_stream_view const &)=default |
Default copy assignment operator. More... | |
constexpr cuda_stream_view & | operator= (cuda_stream_view &&)=default |
Default move assignment operator. More... | |
constexpr | cuda_stream_view (int)=delete |
constexpr | cuda_stream_view (std::nullptr_t)=delete |
constexpr | cuda_stream_view (cudaStream_t stream) noexcept |
Constructor from a cudaStream_t. More... | |
constexpr | cuda_stream_view (cuda::stream_ref stream) noexcept |
Implicit conversion from stream_ref. More... | |
constexpr cudaStream_t | value () const noexcept |
Get the wrapped stream. More... | |
constexpr | operator cudaStream_t () const noexcept |
Implicit conversion to cudaStream_t. More... | |
constexpr | operator cuda::stream_ref () const noexcept |
Implicit conversion to stream_ref. More... | |
bool | is_per_thread_default () const noexcept |
true if the wrapped stream is the CUDA per-thread default stream More... | |
bool | is_default () const noexcept |
true if the wrapped stream is explicitly the CUDA legacy default stream More... | |
void | synchronize () const |
Synchronize the viewed CUDA stream. More... | |
void | synchronize_no_throw () const noexcept |
Synchronize the viewed CUDA stream. Does not throw if there is an error. More... | |
Strongly-typed non-owning wrapper for CUDA streams with default constructor.
This wrapper is simply a "view": it does not own the lifetime of the stream it wraps.
|
inlineconstexprnoexcept |
Constructor from a cudaStream_t.
stream | The underlying stream for this view |
|
inlineconstexprnoexcept |
Implicit conversion from stream_ref.
stream | The underlying stream for this view |
|
inlinenoexcept |
true if the wrapped stream is explicitly the CUDA legacy default stream
|
inlinenoexcept |
true if the wrapped stream is the CUDA per-thread default stream
|
inlineconstexprnoexcept |
Implicit conversion to stream_ref.
|
inlineconstexprnoexcept |
Implicit conversion to cudaStream_t.
|
constexprdefault |
Default move assignment operator.
|
constexprdefault |
Default copy assignment operator.
|
inline |
Synchronize the viewed CUDA stream.
Calls cudaStreamSynchronize()
.
rmm::cuda_error | if stream synchronization fails |
|
inlinenoexcept |
Synchronize the viewed CUDA stream. Does not throw if there is an error.
Calls cudaStreamSynchronize()
and asserts if there is an error.
|
inlineconstexprnoexcept |
Get the wrapped stream.