diff --git a/test/test_array.py b/test/test_array.py index 2821d923fc325893e7f1e7169bdaac81657e61c8..899fc2383c1248efc80dbb7a49f8801146376554 100644 --- a/test/test_array.py +++ b/test/test_array.py @@ -715,6 +715,13 @@ def test_random_float_in_range(ctx_factory, rng_class, ary_size, plot_hist=False context = ctx_factory() queue = cl.CommandQueue(context) + device = queue.device + if device.platform.vendor == "The pocl project" \ + and device.type & cl.device_type.GPU \ + and rng_class is RanluxGenerator: + pytest.xfail("ranlux test fails on POCL + Nvidia," + "at least the Titan V, as of pocl 1.6, 2021-01-20") + if has_double_support(context.devices[0]): dtypes = [np.float32, np.float64] else: @@ -767,6 +774,12 @@ def test_random_int_in_range(ctx_factory, rng_class, dtype, plot_hist=False): context = ctx_factory() queue = cl.CommandQueue(context) + if queue.device.platform.vendor == "The pocl project" \ + and queue.device.type & cl.device_type.GPU \ + and rng_class is RanluxGenerator: + pytest.xfail("ranlux test fails on POCL + Nvidia," + "at least the Titan V, as of pocl 1.6, 2021-01-20") + if rng_class is RanluxGenerator: gen = rng_class(queue, 5120) else: