cuda::experimental::stream_ref#
-
struct stream_ref : public cuda::stream_ref#
A non-owning wrapper for cudaStream_t.
Note
It is undefined behavior to use a
stream_ref
object beyond the lifetime of the stream it was created from, except for theget()
member function.Subclassed by cuda::experimental::stream
Public Types
-
using scheduler_concept = execution::scheduler_t#
Public Functions
-
stream_ref() = delete#
- inline constexpr stream_ref(
- const ::cuda::stream_ref &__other,
Converting constructor from
::cuda::stream_ref
.- Post:
*this == __other
-
inline bool ready() const#
Deprecated. Use is_done() instead.
-
auto schedule() const noexcept#
Returns a
execution::sender
that completes on this stream.Note
Equivalent to
execution::schedule(execution::stream_scheduler{*this})
.
-
inline logical_device logical_device() const#
Get the logical device under which this stream was created.
Compared to
device()
member function the returnedlogical_device
will hold a green context for streams created under one.
-
using scheduler_concept = execution::scheduler_t#