From 598a2415fdd1b88d573e2df29d0c002e5c8ac2fc Mon Sep 17 00:00:00 2001 From: Andreas Kloeckner <inform@tiker.net> Date: Thu, 12 May 2016 12:47:53 -0500 Subject: [PATCH] Skip R123 test on legacy PyOpenCL --- test/test_loopy.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/test/test_loopy.py b/test/test_loopy.py index 46273b52f..a61b6563f 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( -- GitLab