Skip to content

Commit 7ea73f7

Browse files
committed
Pre-commit and revert fix
1 parent 4179dd2 commit 7ea73f7

3 files changed

Lines changed: 13 additions & 3 deletions

File tree

cuda_core/cuda/core/experimental/__init__.py

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,13 @@
55
from cuda.core.experimental import utils
66
from cuda.core.experimental._device import Device
77
from cuda.core.experimental._event import Event, EventOptions
8-
from cuda.core.experimental._graph import GraphCompleteOptions, GraphDebugPrintOptions, Graph, GraphBuilder, launch_graph
8+
from cuda.core.experimental._graph import (
9+
Graph,
10+
GraphBuilder,
11+
GraphCompleteOptions,
12+
GraphDebugPrintOptions,
13+
launch_graph,
14+
)
915
from cuda.core.experimental._launch_config import LaunchConfig
1016
from cuda.core.experimental._launcher import launch
1117
from cuda.core.experimental._linker import Linker, LinkerOptions

cuda_core/cuda/core/experimental/_graph.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -768,6 +768,10 @@ def launch_graph(parent_graph: GraphBuilder, child_graph: GraphBuilder):
768768
if not parent_graph.is_building:
769769
raise ValueError("Parent graph is being built.")
770770

771+
_, _, graph_out, dependencies_out, num_dependencies_out = handle_return(
772+
driver.cuStreamGetCaptureInfo(parent_graph.stream.handle)
773+
)
774+
771775
child_node = handle_return(
772776
driver.cuGraphAddChildGraphNode(graph_out, dependencies_out, num_dependencies_out, child_graph._mnff.graph)
773777
)

cuda_core/tests/test_graph.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,10 +10,10 @@
1010
except ImportError:
1111
from cuda import nvrtc
1212
from cuda.core.experimental import (
13-
GraphCompleteOptions,
14-
GraphDebugPrintOptions,
1513
Device,
1614
GraphBuilder,
15+
GraphCompleteOptions,
16+
GraphDebugPrintOptions,
1717
LaunchConfig,
1818
Program,
1919
ProgramOptions,

0 commit comments

Comments
 (0)