(backend)
| 173 | |
| 174 | @pytest.mark.parametrize("backend", ["cupy", "numpy"]) |
| 175 | def test_random_Generator_processes(backend): |
| 176 | with config.set({"array.backend": backend}): |
| 177 | # Check that matching seeds produce consistent results |
| 178 | # with scheduler="processes" |
| 179 | state = da.random.default_rng(5) |
| 180 | x = state.standard_normal(size=(2, 3), chunks=3) |
| 181 | state = da.random.default_rng(5) |
| 182 | y = state.standard_normal(size=(2, 3), chunks=3) |
| 183 | assert_eq(x, y, scheduler="processes") |
| 184 | |
| 185 | |
| 186 | def test_cupy_unsupported(): |
nothing calls this directly
no test coverage detected