|
17 | 17 | @pytest.mark.parametrize( |
18 | 18 | "condition_value", [True, False, ctypes.c_bool(True), ctypes.c_bool(False), np.bool_(True), np.bool_(False), 1, 0] |
19 | 19 | ) |
20 | | -@requires_module(np, "2.1") |
| 20 | +@requires_module(np, "2.2.5", reason="need numpy 2.2.5+ (numpy GH #28632)") |
21 | 21 | def test_graph_conditional_if(init_cuda, condition_value): |
22 | 22 | mod = compile_conditional_kernels(type(condition_value)) |
23 | 23 | add_one = mod.get_kernel("add_one") |
@@ -81,7 +81,7 @@ def test_graph_conditional_if(init_cuda, condition_value): |
81 | 81 | @pytest.mark.parametrize( |
82 | 82 | "condition_value", [True, False, ctypes.c_bool(True), ctypes.c_bool(False), np.bool_(True), np.bool_(False), 1, 0] |
83 | 83 | ) |
84 | | -@requires_module(np, "2.1") |
| 84 | +@requires_module(np, "2.2.5", reason="need numpy 2.2.5+ (numpy GH #28632)") |
85 | 85 | def test_graph_conditional_if_else(init_cuda, condition_value): |
86 | 86 | mod = compile_conditional_kernels(type(condition_value)) |
87 | 87 | add_one = mod.get_kernel("add_one") |
@@ -153,7 +153,7 @@ def test_graph_conditional_if_else(init_cuda, condition_value): |
153 | 153 |
|
154 | 154 |
|
155 | 155 | @pytest.mark.parametrize("condition_value", [0, 1, 2, 3]) |
156 | | -@requires_module(np, "2.1") |
| 156 | +@requires_module(np, "2.2.5", reason="need numpy 2.2.5+ (numpy GH #28632)") |
157 | 157 | def test_graph_conditional_switch(init_cuda, condition_value): |
158 | 158 | mod = compile_conditional_kernels(type(condition_value)) |
159 | 159 | add_one = mod.get_kernel("add_one") |
@@ -244,7 +244,7 @@ def test_graph_conditional_switch(init_cuda, condition_value): |
244 | 244 |
|
245 | 245 |
|
246 | 246 | @pytest.mark.parametrize("condition_value", [True, False, 1, 0]) |
247 | | -@requires_module(np, "2.1") |
| 247 | +@requires_module(np, "2.2.5", reason="need numpy 2.2.5+ (numpy GH #28632)") |
248 | 248 | def test_graph_conditional_while(init_cuda, condition_value): |
249 | 249 | mod = compile_conditional_kernels(type(condition_value)) |
250 | 250 | add_one = mod.get_kernel("add_one") |
|
0 commit comments