diff --git a/test/test_algorithm.py b/test/test_algorithm.py index 68ce62d586e48ed59e26517b6a44e221638593cc..b2ed6c6feb8b99cfd18e89c1b0371de828b56b34 100644 --- a/test/test_algorithm.py +++ b/test/test_algorithm.py @@ -29,6 +29,8 @@ import pytools.test from pytools import memoize from test_array import general_clrand +import pytest + import pyopencl as cl import pyopencl.array as cl_array # noqa from pyopencl.tools import pytest_generate_tests_for_pyopencl \ @@ -366,12 +368,16 @@ def make_mmc_dtype(device): @pytools.test.mark_test.opencl def test_struct_reduce(ctx_factory): - from pytest import importorskip - importorskip("mako") + pytest.importorskip("mako") context = ctx_factory() queue = cl.CommandQueue(context) + dev, = context.devices + if (dev.vendor == "NVIDIA" and dev.platform.vendor == "Apple" + and dev.driver_version == "8.12.47 310.40.00.05f01"): + pytest.skip("causes a compiler hang on Apple/Nv GPU") + mmc_dtype, mmc_c_decl = make_mmc_dtype(context.devices[0]) preamble = mmc_c_decl + r"""//CL//