Skip to main content

cudaGraphAddExternalSemaphoresWaitNode

Function cudaGraphAddExternalSemaphoresWaitNode 

Source
pub unsafe extern "C" fn cudaGraphAddExternalSemaphoresWaitNode(
    pGraphNode: *mut cudaGraphNode_t,
    graph: cudaGraph_t,
    pDependencies: *const cudaGraphNode_t,
    numDependencies: size_t,
    nodeParams: *const cudaExternalSemaphoreWaitNodeParams,
) -> cudaError_t
Expand description

Creates an external semaphore wait node and adds it to a graph.

Creates a new external semaphore wait node and adds it to graph 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 pGraphNode.

Performs a wait operation on a set of externally allocated semaphore objects when the node is launched. The node’s dependencies will not be launched until the wait operation has completed.

§Parameters

  • pGraphNode: Returns newly created node.
  • graph: Graph to which to add the node.
  • pDependencies: Dependencies of the node.
  • numDependencies: Number of dependencies.
  • nodeParams: Parameters for the node.