pub unsafe extern "C" fn cudaGraphAddEventRecordNode(
pGraphNode: *mut cudaGraphNode_t,
graph: cudaGraph_t,
pDependencies: *const cudaGraphNode_t,
numDependencies: size_t,
event: cudaEvent_t,
) -> cudaError_tExpand description
Creates an event record node and adds it to a graph.
Creates a new event record node and adds it to hGraph with numDependencies dependencies specified via dependencies and event specified in event. 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.
Each launch of the graph will record event to capture execution of the node’s dependencies.
These nodes may not be used in loops or conditionals.
§Parameters
numDependencies: Number of dependencies.event: Event for the node.