Skip to main content

cuGraphAddMemsetNode

Function cuGraphAddMemsetNode 

Source
pub unsafe extern "C" fn cuGraphAddMemsetNode(
    phGraphNode: *mut CUgraphNode,
    hGraph: CUgraph,
    dependencies: *const CUgraphNode,
    numDependencies: size_t,
    memsetParams: *const CUDA_MEMSET_NODE_PARAMS,
    ctx: CUcontext,
) -> CUresult
Expand description

Creates a memset node and adds it to a graph.

Creates a new memset node and adds it to hGraph with numDependencies dependencies specified via dependencies. 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.

The element size must be 1, 2, or 4 bytes. When the graph is launched, the node will perform the memset described by memsetParams.

ยงParameters

  • phGraphNode: Returns newly created node.
  • hGraph: Graph to which to add the node.
  • dependencies: Dependencies of the node.
  • numDependencies: Number of dependencies.
  • memsetParams: Parameters for the memory set.
  • ctx: Context on which to run the node.