Function cudaGraphExecNodeSetParams

Source
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 typeAllowed changes
kernelSee ::cudaGraphExecKernelNodeSetParams
memcpyAddresses for 1-dimensional copies if allocated in same context; see ::cudaGraphExecMemcpyNodeSetParams
memsetAddresses for 1-dimensional memsets if allocated in same context; see ::cudaGraphExecMemsetNodeSetParams
hostUnrestricted
child graphTopology must match and restrictions apply recursively; see ::cudaGraphExecUpdate
event waitUnrestricted
event recordUnrestricted
external semaphore signalNumber of semaphore operations cannot change
external semaphore waitNumber of semaphore operations cannot change
memory allocationAPI unsupported
memory freeAPI 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