From d280d498d0c4c477ec2851799912b3ecebfa64f9 Mon Sep 17 00:00:00 2001 From: Andreas Kloeckner Date: Wed, 20 Jan 2021 18:13:35 -0600 Subject: [PATCH] Xfail a few more ranlux tests on pocl+nvidia --- test/test_array.py | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/test/test_array.py b/test/test_array.py index 2821d923..899fc238 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: -- GitLab