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>

Inheritance diagram for Kokkos::Execution::GraphImpl::OpStateBase< Exec, Rcvr >:
Kokkos::Execution::GraphImpl::WhenAllOpState< Exec, Rcvr, Sndrs >

Public Types

using completion_signal_policy_t = decltype(select_completion_signal_policy())
using completion_signal_t = Impl::CompletionSignal<completion_signal_policy_t, Exec, Rcvr>

Public Member Functions

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

Static Public Member Functions

static consteval auto select_completion_signal_policy () 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 116 of file operation_state.hpp.

Member Typedef Documentation

◆ completion_signal_policy_t

template<Kokkos::ExecutionSpace Exec, stdexec::receiver Rcvr>
using Kokkos::Execution::GraphImpl::OpStateBase< Exec, Rcvr >::completion_signal_policy_t = decltype(select_completion_signal_policy())

Definition at line 125 of file operation_state.hpp.

◆ completion_signal_t

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

Definition at line 126 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 130 of file operation_state.hpp.

References completion_signal.

Member Function Documentation

◆ complete() [1/2]

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 135 of file operation_state.hpp.

References completion_signal.

◆ complete() [2/2]

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

Definition at line 139 of file operation_state.hpp.

References completion_signal.

◆ select_completion_signal_policy()

template<Kokkos::ExecutionSpace Exec, stdexec::receiver Rcvr>
consteval auto Kokkos::Execution::GraphImpl::OpStateBase< Exec, Rcvr >::select_completion_signal_policy ( )
inlinestaticconstevalnoexcept

Definition at line 117 of file operation_state.hpp.

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 128 of file operation_state.hpp.


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