Skip to main content

cuGraphNodeSetParams

Function cuGraphNodeSetParams 

Source
pub unsafe extern "C" fn cuGraphNodeSetParams(
    hNode: CUgraphNode,
    nodeParams: *mut CUgraphNodeParams,
) -> CUresult
Expand description

Update a graph node’s parameters.

Sets the parameters of graph node hNode to nodeParams. The node type specified by nodeParams->type must match the type of hNode. nodeParams must be fully initialized and all unused bytes (reserved, padding) zeroed.

Modifying parameters is not supported for node types CUgraphNodeType::CU_GRAPH_NODE_TYPE_MEM_ALLOC and CUgraphNodeType::CU_GRAPH_NODE_TYPE_MEM_FREE.

Note: Graph objects are not threadsafe. More here.

Note that this function may also return error codes from previous, asynchronous launches.

§Parameters

  • hNode: Node to set the parameters for.
  • nodeParams: Parameters to copy.

§Return value

See also: cuGraphAddNode, cuGraphNodeGetParams, cuGraphExecNodeSetParams.