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_node 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 h_node in the non- executable graph, from which the executable graph was instantiated. h_node must not have been removed from the original graph. The modifications only affect future launches of h_graph_exec. Already enqueued or running launches of h_graph_exec are not affected by this call. h_node is also not modified by this call. If h_node is a device-updatable kernel node, the next upload/launch of h_graph_exec 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.

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