pub unsafe extern "C" fn cuGraphExecNodeSetParams(
hGraphExec: CUgraphExec,
hNode: CUgraphNode,
nodeParams: *mut CUgraphNodeParams,
) -> CUresultExpand 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 type | Allowed changes |
|---|---|
| kernel | See cuGraphExecKernelNodeSetParams |
| memcpy | Addresses for 1-dimensional copies if allocated in same context; see cuGraphExecMemcpyNodeSetParams |
| memset | Addresses for 1-dimensional memsets if allocated in same context; see cuGraphExecMemsetNodeSetParams |
| host | Context changes are not allowed |
| child graph | Topology must match and restrictions apply recursively; see cuGraphExecUpdate |
| event wait | Unrestricted |
| event record | Event only, context changes are not allowed |
| external semaphore signal | Number of semaphore operations and context cannot change |
| external semaphore wait | Number of semaphore operations and context cannot change |
| memory allocation | API unsupported |
| memory free | API unsupported |
| batch memops | Addresses, 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.