kokkos-execution 0.0.1
Loading...
Searching...
No Matches
Kokkos::Execution::GraphImpl::OpStateBase< Exec, Rcvr > Struct Template Reference

Operation state whose sole purpose is to propagate the completion signal. More...

#include <operation_state.hpp>

Public Types

using sync_policy_t = Impl::SyncPolicy::PassThrough
using completion_signal_t = Impl::CompletionSignal<sync_policy_t, Exec, Rcvr>

Public Member Functions

constexpr OpStateBase (Rcvr rcvr) noexcept(std::is_nothrow_constructible_v< completion_signal_t, Rcvr && >)
void complete (stdexec::set_value_t) noexcept
template<typename Error>
void complete (stdexec::set_error_t, Error &&error) noexcept
void complete (stdexec::set_stopped_t) noexcept

Public Attributes

completion_signal_t completion_signal

Detailed Description

template<Kokkos::ExecutionSpace Exec, stdexec::receiver Rcvr>
struct Kokkos::Execution::GraphImpl::OpStateBase< Exec, Rcvr >

Operation state whose sole purpose is to propagate the completion signal.

Inspired by https://github.com/NVIDIA/stdexec/blob/56613d3498bc39724dfbae0914cff2aaf3f9dcc6/include/stdexec/__detail/__receiver_adaptor.hpp#L111.

Definition at line 69 of file operation_state.hpp.

Member Typedef Documentation

◆ completion_signal_t

template<Kokkos::ExecutionSpace Exec, stdexec::receiver Rcvr>
using Kokkos::Execution::GraphImpl::OpStateBase< Exec, Rcvr >::completion_signal_t = Impl::CompletionSignal<sync_policy_t, Exec, Rcvr>

Definition at line 71 of file operation_state.hpp.

◆ sync_policy_t

template<Kokkos::ExecutionSpace Exec, stdexec::receiver Rcvr>
using Kokkos::Execution::GraphImpl::OpStateBase< Exec, Rcvr >::sync_policy_t = Impl::SyncPolicy::PassThrough

Definition at line 70 of file operation_state.hpp.

Constructor & Destructor Documentation

◆ OpStateBase()

template<Kokkos::ExecutionSpace Exec, stdexec::receiver Rcvr>
Kokkos::Execution::GraphImpl::OpStateBase< Exec, Rcvr >::OpStateBase ( Rcvr rcvr)
inlineexplicitconstexprnoexcept

Definition at line 75 of file operation_state.hpp.

References completion_signal.

Member Function Documentation

◆ complete() [1/3]

template<Kokkos::ExecutionSpace Exec, stdexec::receiver Rcvr>
template<typename Error>
void Kokkos::Execution::GraphImpl::OpStateBase< Exec, Rcvr >::complete ( stdexec::set_error_t ,
Error && error )
inlinenoexcept

Definition at line 84 of file operation_state.hpp.

References completion_signal.

◆ complete() [2/3]

template<Kokkos::ExecutionSpace Exec, stdexec::receiver Rcvr>
void Kokkos::Execution::GraphImpl::OpStateBase< Exec, Rcvr >::complete ( stdexec::set_stopped_t )
inlinenoexcept

Definition at line 88 of file operation_state.hpp.

References completion_signal.

◆ complete() [3/3]

template<Kokkos::ExecutionSpace Exec, stdexec::receiver Rcvr>
void Kokkos::Execution::GraphImpl::OpStateBase< Exec, Rcvr >::complete ( stdexec::set_value_t )
inlinenoexcept

Definition at line 79 of file operation_state.hpp.

References completion_signal.

Member Data Documentation

◆ completion_signal

template<Kokkos::ExecutionSpace Exec, stdexec::receiver Rcvr>
completion_signal_t Kokkos::Execution::GraphImpl::OpStateBase< Exec, Rcvr >::completion_signal

Definition at line 73 of file operation_state.hpp.


The documentation for this struct was generated from the following file: