diff --git a/test/test_loopy.py b/test/test_loopy.py index 46273b52f61566a5d061dd078c955edcdbb2a66d..a61b6563ff254fdf6eaf6279158a97d20045a663 100644 --- a/test/test_loopy.py +++ b/test/test_loopy.py @@ -2525,6 +2525,10 @@ def test_random123(ctx_factory, tp): ctx = ctx_factory() queue = cl.CommandQueue(ctx) + import pyopencl.version # noqa + if cl.version.VERSION < (2016, 2): + pytest.skip("Random123 RNG not supported in PyOpenCL < 2016.2") + n = 150000 knl = lp.make_kernel(