cuda.bindings._v2.driver.graph_node_set_enabled#
- cuda.bindings._v2.driver.graph_node_set_enabled(
- intptr_t h_graph_exec,
- intptr_t h_node,
- unsigned int is_enabled,
Enables or disables the specified node in the given graphExec.
Sets
h_nodeto 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 nodeh_nodein the non- executable graph, from which the executable graph was instantiated.h_nodemust not have been removed from the original graph. The modifications only affect future launches ofh_graph_exec. Already enqueued or running launches ofh_graph_execare not affected by this call.h_nodeis also not modified by this call. Ifh_nodeis a device-updatable kernel node, the next upload/launch ofh_graph_execwill 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.- Parameters:
h_graph_exec (intptr_t) – The executable graph in which to set the specified node.
h_node (intptr_t) – Node from the graph from which graphExec was instantiated.
is_enabled (unsigned int) – Node is enabled if != 0, otherwise the node is disabled.
Note
Currently only kernel, memset and memcpy nodes are supported.
See also
cuGraphNodeSetEnabled