1#ifndef KOKKOS_EXECUTION_GRAPH_GET_GRAPH_HPP
2#define KOKKOS_EXECUTION_GRAPH_GET_GRAPH_HPP
28 template <
typename Queryable>
31 template <
typename Exec,
typename Queryable>
34 template <
typename Exec,
typename Queryable>
35 requires(std::same_as<policy_t<Queryable>,
Create>)
37 using type =
typename Kokkos::Experimental::Graph<Exec>::root_t;
40 template <
typename Exec,
typename Queryable>
41 requires(std::same_as<policy_t<Queryable>,
Attach>)
43 using type = stdexec::__query_result_t<Queryable, get_node_t>;
50 template <
typename Exec,
typename Queryable>
constexpr get_graph_t get_graph
Attach to the existing graph of the predecessor.
Create a new graph and attach after the root node.
typename Kokkos::Experimental::Graph< Exec >::root_t type
Inspired by https://github.com/NVIDIA/stdexec/blob/8c5eedd0fcf9a8ebcdb75d988f72f88efcf64a37/include/s...
typename node_helper_t< Exec, Queryable >::type node_t
std::conditional_t< stdexec::__queryable_with< Queryable, get_node_t >, Attach, Create > policy_t
Use the Attach policy if Queryable is queryable with get_node_t.