warp.capture_launch#
- warp.capture_launch(graph, stream=None)[source]#
Launch a previously captured graph.
For CUDA graphs, this launches via
cudaGraphLaunch(). For CPU graphs, this replays recorded operations in a C++ loop inside Warp.- Parameters:
graph (Graph) – A
Graphreturned bycapture_end()orcapture_load().stream (Stream | None) – A
Streamto launch the graph on (CUDA only)
- Raises:
RuntimeError – If
graphis a CPU graph and a CPU graph capture is recording, or if the launch fails, for example when a CUDA graph is launched on a stream that is being captured.