Function cuGraphExecNodeSetParams

Source
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 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
hostUnrestricted
child graphTopology must match and restrictions apply recursively; see ::cuGraphExecUpdate
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
batch memopsAddresses, 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