cuda::experimental::depends_on#

template<class ..._Nodes>
inline constexpr auto cuda::experimental::depends_on(
const _Nodes&... __nodes,
) noexcept -> ::cuda::std::array<cudaGraphNode_t, sizeof...(_Nodes)>#

Builds an array of graph nodes that represent dependencies.

It is for use as a parameter to the graph_builder::add function.

Note

A static assertion ensures that all provided arguments are convertible to graph_node_ref. If this condition is not met, a compilation error will occur.

Template Parameters:

_Nodes – Variadic template parameter representing the types of the graph nodes. Each type must be either graph_node_ref or cudaGraphNode_t.

Parameters:

__nodes – The graph nodes to add as dependencies to a new node.

Returns:

A object of type cuda::std::array<cudaGraphNode_t, sizeof...(_Nodes)> containing the references to the provided graph nodes.