From a4e6bf847aa6891aea084e42cadf4c254e67e4a7 Mon Sep 17 00:00:00 2001
From: Andreas Kloeckner <inform@tiker.net>
Date: Sat, 19 Nov 2011 21:56:07 -0500
Subject: [PATCH] Remark on Intel throwing a C++ exception through the CL
 interface. (!)

---
 test/test_wrapper.py | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/test/test_wrapper.py b/test/test_wrapper.py
index f2b2a9b9..be682dd0 100644
--- a/test/test_wrapper.py
+++ b/test/test_wrapper.py
@@ -167,6 +167,10 @@ class TestCL:
                     raise RuntimeError("invalid kernel name did not cause error")
                 except AttributeError:
                     pass
+                except RuntimeError:
+                    raise RuntimeError("weird exception from OpenCL implementation "
+                            "on invalid kernel name--are you using "
+                            "Intel's implementation?")
 
     @pytools.test.mark_test.opencl
     def test_image_format_constructor(self):
-- 
GitLab