diff --git a/test/test_wrapper.py b/test/test_wrapper.py index a9863a40db25e243ad56cf83808b7e0e233fee30..7030549a5ea4a54ac0378fd6ae19afdc31c6a1dc 100644 --- a/test/test_wrapper.py +++ b/test/test_wrapper.py @@ -975,6 +975,11 @@ def test_spirv(ctx_factory): pytest.skip("SPIR-V program creation only available " "in OpenCL 2.1 and higher") + if queue.device.platform.name == "Portable Computing Language": + # I'm not sure this is universal, but pocl 1.7 seems to use it. + if "cl_khr_spirv" not in queue.device.extensions.split(): + pytest.skip("SPIR-V program creation not supported by device") + n = 50000 a_dev = cl.clrandom.rand(queue, n, np.float32)