pub unsafe extern "C" fn cudaGraphExecNodeSetParams(
graphExec: cudaGraphExec_t,
node: cudaGraphNode_t,
nodeParams: *mut cudaGraphNodeParams,
) -> cudaError_t
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 graphExec. The node is identified by the corresponding node \p node in the non-executable graph from which the executable graph was instantiated. \p node must not have been removed from the original graph.
The modifications only affect future launches of \p graphExec. Already enqueued or running launches of \p graphExec are not affected by this call. \p node is also not modified by this call.
Allowed changes to parameters on executable graphs are as follows:
Node type | Allowed changes |
---|---|
kernel | See ::cudaGraphExecKernelNodeSetParams |
memcpy | Addresses for 1-dimensional copies if allocated in same context; see ::cudaGraphExecMemcpyNodeSetParams |
memset | Addresses for 1-dimensional memsets if allocated in same context; see ::cudaGraphExecMemsetNodeSetParams |
host | Unrestricted |
child graph | Topology must match and restrictions apply recursively; see ::cudaGraphExecUpdate |
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 |
\param graphExec - The executable graph in which to update the specified node \param node - Corresponding node from the graph from which graphExec was instantiated \param nodeParams - Updated Parameters to set
\return ::cudaSuccess, ::cudaErrorInvalidValue, ::cudaErrorInvalidDeviceFunction, ::cudaErrorNotSupported \note_graph_thread_safety \notefnerr \note_init_rt \note_callback
\sa ::cudaGraphAddNode, ::cudaGraphNodeSetParams ::cudaGraphExecUpdate, ::cudaGraphInstantiate