From 5a1d37c33e787e48b73d763423505b83ed35f4fa Mon Sep 17 00:00:00 2001
From: Andreas Kloeckner <inform@tiker.net>
Date: Thu, 18 Aug 2022 16:34:04 -0500
Subject: [PATCH] Skip bitonic sort on Intel CPU CL for crashes

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

diff --git a/test/test_algorithm.py b/test/test_algorithm.py
index 40fe854b..42084e36 100644
--- a/test/test_algorithm.py
+++ b/test/test_algorithm.py
@@ -1068,6 +1068,9 @@ def test_bitonic_sort(ctx_factory, size, dtype):
     if dtype == np.float64 and not has_double_support(dev):
         from pytest import skip
         skip("double precision not supported on %s" % dev)
+    if dev.platform.name == "Intel(R) OpenCL":
+        pytest.skip("Fails to compile on Intel because of "
+                "https://github.com/intel/llvm/issues/6607")
 
     import pyopencl.clrandom as clrandom
     from pyopencl.bitonic_sort import BitonicSort
@@ -1113,6 +1116,9 @@ def test_bitonic_argsort(ctx_factory, size, dtype):
             and device.type & cl.device_type.GPU:
         pytest.xfail("bitonic argsort fails on POCL + Nvidia,"
                 "at least the K40, as of pocl 1.6, 2021-01-20")
+    if device.platform.name == "Intel(R) OpenCL":
+        pytest.skip("Fails to compile on Intel because of "
+                "https://github.com/intel/llvm/issues/6607")
 
     dev = ctx.devices[0]
     if (dev.platform.name == "Portable Computing Language"
-- 
GitLab