diff --git a/test/test_enqueue_copy.py b/test/test_enqueue_copy.py index 55f72d9519f89ed5b17c061559104379a3896e72..402bc8b9d71e47592f67101ff58dfb90a0c56630 100644 --- a/test/test_enqueue_copy.py +++ b/test/test_enqueue_copy.py @@ -48,8 +48,14 @@ def test_enqueue_copy_rect_2d(ctx_factory, honor_skip=True): # https://github.com/pocl/pocl/issues/353 pytest.skip("POCL's rectangular copies crash") + device = queue.device + if device.platform.vendor == "The pocl project" \ + and device.type & cl.device_type.GPU: + pytest.xfail("rect copies fail on POCL + Nvidia," + "at least the K40, as of pocl 1.6, 2021-01-20") + if honor_skip and queue.device.platform.name == "Apple": - pytest.skip("Apple's CL implementation crashes on this.") + pytest.xfail("Apple's CL implementation crashes on this.") ary_in_shp = 256, 128 # Entire array shape from which sub-array copied to device sub_ary_shp = 128, 96 # Sub-array shape to be copied to device @@ -138,6 +144,12 @@ def test_enqueue_copy_rect_3d(ctx_factory, honor_skip=True): # https://github.com/pocl/pocl/issues/353 pytest.skip("POCL's rectangular copies crash") + device = queue.device + if device.platform.vendor == "The pocl project" \ + and device.type & cl.device_type.GPU: + pytest.xfail("rect copies fail on POCL + Nvidia," + "at least the K40, as of pocl 1.6, 2021-01-20") + if honor_skip and queue.device.platform.name == "Apple": pytest.skip("Apple's CL implementation crashes on this.")