From 8d294c35c4dfcb1ce565b890ad85c25e1c74dd81 Mon Sep 17 00:00:00 2001
From: Andreas Kloeckner <inform@tiker.net>
Date: Tue, 22 Mar 2016 08:51:39 -0500
Subject: [PATCH] Skip int64 test on old PyOpenCL

---
 test/test_loopy.py | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/test/test_loopy.py b/test/test_loopy.py
index 5929e7aa7..810106aef 100644
--- a/test/test_loopy.py
+++ b/test/test_loopy.py
@@ -2430,6 +2430,12 @@ def test_atomic(ctx_factory, dtype):
             and "cl_khr_int64_base_atomics" not in ctx.devices[0].extensions):
         pytest.skip("64-bit atomics not supported on device")
 
+    import pyopencl.version  # noqa
+    if (
+            cl.version.VERSION < (2015, 2)
+            and dtype == np.int64):
+        pytest.skip("int64 RNG not supported in PyOpenCL < 2015.2")
+
     knl = lp.make_kernel(
             "{ [i]: 0<=i<n }",
             "out[i%20] = out[i%20] + 2*a[i] {atomic}",
-- 
GitLab