pub unsafe extern "C" fn cuGraphNodeSetEnabled(
hGraphExec: CUgraphExec,
hNode: CUgraphNode,
isEnabled: c_uint,
) -> CUresult
Expand description
\brief Enables or disables the specified node in the given graphExec
Sets \p hNode to be either enabled or disabled. Disabled nodes are functionally equivalent to empty nodes until they are reenabled. Existing node parameters are not affected by disabling/enabling the node.
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.
If \p hNode is a device-updatable kernel node, the next upload/launch of \p hGraphExec will overwrite any previous device-side updates. Additionally, applying host updates to a device-updatable kernel node while it is being updated from the device will result in undefined behavior.
\note Currently only kernel, memset and memcpy nodes are supported.
\param hGraphExec - The executable graph in which to set the specified node \param hNode - Node from the graph from which graphExec was instantiated \param isEnabled - Node is enabled if != 0, otherwise the node is disabled
\return ::CUDA_SUCCESS, ::CUDA_ERROR_INVALID_VALUE, \note_graph_thread_safety \notefnerr
\sa ::cuGraphNodeGetEnabled, ::cuGraphExecUpdate, ::cuGraphInstantiate ::cuGraphLaunch