Skip to main content

cuGraphExecNodeSetParams

Function cuGraphExecNodeSetParams 

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

Update a graph node’s parameters in an instantiated graph.

Sets the parameters of a node in an executable graph hGraphExec. The node is identified by the corresponding node hNode in the non-executable graph from which the executable graph was instantiated. hNode must not have been removed from the original graph.

The modifications only affect future launches of hGraphExec. Already enqueued or running launches of hGraphExec are not affected by this call. hNode is also not modified by this call.

Allowed changes to parameters on executable graphs are as follows:

Node typeAllowed changes
kernelSee cuGraphExecKernelNodeSetParams
memcpyAddresses for 1-dimensional copies if allocated in same context; see cuGraphExecMemcpyNodeSetParams
memsetAddresses for 1-dimensional memsets if allocated in same context; see cuGraphExecMemsetNodeSetParams
hostContext changes are not allowed
child graphTopology must match and restrictions apply recursively; see cuGraphExecUpdate
event waitUnrestricted
event recordEvent only, context changes are not allowed
external semaphore signalNumber of semaphore operations and context cannot change
external semaphore waitNumber of semaphore operations and context cannot change
memory allocationAPI unsupported
memory freeAPI unsupported
batch memopsAddresses, values, and operation type for wait operations; see cuGraphExecBatchMemOpNodeSetParams

Note: Graph objects are not threadsafe. More here.

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

§Parameters

  • hGraphExec: The executable graph in which to update the specified node.
  • hNode: Corresponding node from the graph from which graphExec was instantiated.
  • nodeParams: Updated Parameters to set.

§Return value

See also: cuGraphAddNode, cuGraphNodeSetParams, cuGraphExecUpdate, cuGraphInstantiate.