pub unsafe extern "C" fn cuGraphExecNodeSetParams(
hGraphExec: CUgraphExec,
hNode: CUgraphNode,
nodeParams: *mut CUgraphNodeParams,
) -> CUresult
Expand description
\brief Update’s a graph node’s parameters in an instantiated graph
Sets the parameters of a node in an executable graph \p hGraphExec. The node is identified by the corresponding node \p hNode in the non-executable graph from which the executable graph was instantiated. \p hNode must not have been removed from the original graph.
The modifications only affect future launches of \p hGraphExec. Already enqueued or running launches of \p hGraphExec are not affected by this call. \p 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 | Unrestricted |
child graph | Topology must match and restrictions apply recursively; see ::cuGraphExecUpdate |
event wait | Unrestricted |
event record | Unrestricted |
external semaphore signal | Number of semaphore operations cannot change |
external semaphore wait | Number of semaphore operations cannot change |
memory allocation | API unsupported |
memory free | API unsupported |
batch memops | Addresses, values, and operation type for wait operations; see ::cuGraphExecBatchMemOpNodeSetParams |
\param hGraphExec - The executable graph in which to update the specified node \param hNode - Corresponding node from the graph from which graphExec was instantiated \param nodeParams - Updated Parameters to set
\return ::CUDA_SUCCESS, ::CUDA_ERROR_INVALID_VALUE, ::CUDA_ERROR_NOT_SUPPORTED \note_graph_thread_safety \notefnerr
\sa ::cuGraphAddNode, ::cuGraphNodeSetParams ::cuGraphExecUpdate, ::cuGraphInstantiate