cuda::experimental::stf::graph_task#

template<typename ...Deps>
class graph_task#

Provides a graph scope object within which functions invoked are either captured in a graph or passed to a subgraph, depending on the function type.

Invocation is carried by means of operator->*. Dependencies are typed appropriately.

Public Functions

inline graph_task(
backend_ctx_untyped ctx,
cudaGraph_t g,
::std::mutex &graph_mutex,
size_t stage,
exec_place e_place,
task_dep<Deps>... deps,
)#
inline graph_task &set_symbol(::std::string s) &#

Set the symbol object.

Parameters:

s

Returns:

graph_task&

inline graph_task &&set_symbol(::std::string s) &&#
template<typename Fun>
inline void operator->*(Fun &&f)#