pub unsafe extern "C" fn cuGraphAddHostNode(
phGraphNode: *mut CUgraphNode,
hGraph: CUgraph,
dependencies: *const CUgraphNode,
numDependencies: size_t,
nodeParams: *const CUDA_HOST_NODE_PARAMS,
) -> CUresultExpand description
Creates a host execution node and adds it to a graph.
Creates a new CPU execution node and adds it to hGraph with numDependencies dependencies specified via dependencies and arguments specified in nodeParams. It is possible for numDependencies to be 0, in which case the node will be placed at the root of the graph. dependencies may not have any duplicate entries. A handle to the new node will be returned in phGraphNode.
When the graph is launched, the node will invoke the specified CPU function. Host nodes are not supported under MPS with pre-Volta GPUs.
ยงParameters
phGraphNode: Returns newly created node.hGraph: Graph to which to add the node.dependencies: Dependencies of the node.numDependencies: Number of dependencies.nodeParams: Parameters for the host node.