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_refobject 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.
-
inline auto schedule() const noexcept#
Returns a
execution::senderthat 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_devicewill hold a green context for streams created under one.
- inline constexpr auto query(
- const execution::get_forward_progress_guarantee_t&,
- inline constexpr auto query(
- const execution::get_completion_behavior_t&,
- inline constexpr auto query(
- const execution::get_completion_scheduler_t<execution::set_value_t>&,
-
template<class _Env>
inline constexpr auto query( - const execution::get_completion_scheduler_t<execution::set_error_t>&,
- const _Env &__env,
- inline constexpr auto query(
- const execution::get_completion_domain_t<execution::set_value_t>&,
-
using scheduler_concept = execution::scheduler_t#