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:
Raises:

RuntimeError – If graph is 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.