@@ -61,7 +61,7 @@ def test_dynamic_params(self):
6161 assert stat == drv .capture_status .ACTIVE , "Capture should be active"
6262 assert len (deps ) == 0 , "Nothing on deps"
6363 newnode = x_graph .add_kernel_node (a_gpu , numpy .int32 (3 ), block = (4 , 4 , 1 ), func = func_plus , dependencies = deps )
64- stream_1 .update_capture_dependencies ([newnode ], 1 )
64+ stream_1 .update_capture_dependencies ([newnode ], cuda . update_capture_dependencies_flags . SET_CAPTURE_DEPENDENCIES )
6565 drv .memcpy_dtoh_async (result , a_gpu , stream_1 ) # Capture a copy as well.
6666 graph = stream_1 .end_capture ()
6767 assert graph == x_graph , "Should be the same"
@@ -110,11 +110,11 @@ def test_many_dynamic_params(self):
110110 assert stat == drv .capture_status .ACTIVE , "Capture should be active"
111111 assert len (deps ) == 0 , "Nothing on deps"
112112 newnode = x_graph .add_kernel_node (a_gpu , numpy .int32 (3 ), block = (4 , 4 , 1 ), func = func_plus , dependencies = deps )
113- stream_1 .update_capture_dependencies ([newnode ], 1 )
113+ stream_1 .update_capture_dependencies ([newnode ], cuda . update_capture_dependencies_flags . SET_CAPTURE_DEPENDENCIES )
114114 _ , _ , x_graph , deps = stream_1 .get_capture_info_v2 ()
115115 assert deps == [newnode ], "Call to update_capture_dependencies should set newnode as the only dep"
116116 newnode2 = x_graph .add_kernel_node (b_gpu , numpy .int32 (3 ), block = (4 , 4 , 1 ), func = func_plus , dependencies = deps )
117- stream_1 .update_capture_dependencies ([newnode2 ], 1 )
117+ stream_1 .update_capture_dependencies ([newnode2 ], cuda . update_capture_dependencies_flags . SET_CAPTURE_DEPENDENCIES )
118118
119119 # Static capture
120120 func_times (a_gpu , b_gpu , block = (4 , 4 , 1 ), stream = stream_1 )
0 commit comments