diff --git a/test/test_wrapper.py b/test/test_wrapper.py index 44db7b58e0b9b38563a1ea6bd86e41c8d0bfefe3..40771c2c3df31b15e1b7ac17c3ac26c63a651a33 100644 --- a/test/test_wrapper.py +++ b/test/test_wrapper.py @@ -266,7 +266,13 @@ class TestCL: a_result = np.empty_like(a) cl.enqueue_copy(queue, a_result, a_dest) - assert la.norm(a_result - a) == 0 + good = la.norm(a_result - a) == 0 + if not good: + if queue.device.type == cl.device_type.CPU: + assert good, ("The image implementation on your CPU CL platform '%s' " + "returned bad values. This is bad, but common." % queue.device.platform) + else: + assert good @pytools.test.mark_test.opencl def test_copy_buffer(self, ctx_factory):