cuda.bindings._v2.driver.graph_launch#
- cuda.bindings._v2.driver.graph_launch(intptr_t h_graph_exec, intptr_t h_stream)#
Launches an executable graph in a stream.
Executes
h_graph_execinh_stream. Only one instance ofh_graph_execmay be executing at a time. Each launch is ordered behind both any previous work inh_streamand any previous launches ofh_graph_exec. To execute a graph concurrently, it must be instantiated multiple times into multiple executable graphs. If any allocations created byh_graph_execremain unfreed (from a previous launch) andh_graph_execwas not instantiated withCUDA_GRAPH_INSTANTIATE_FLAG_AUTO_FREE_ON_LAUNCH, the launch will fail withCUDA_ERROR_INVALID_VALUE.- Parameters:
h_graph_exec (intptr_t) – Executable graph to launch.
h_stream (intptr_t) – Stream in which to launch the graph.
See also
cuGraphLaunch