From 85d96637fed5d14e53a30214147d6ab49a9380e0 Mon Sep 17 00:00:00 2001 From: Andreas Kloeckner Date: Mon, 16 Aug 2021 12:12:48 -0500 Subject: [PATCH] Fix skipping of SPIR-V test for Nvidia driver --- test/test_wrapper.py | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/test/test_wrapper.py b/test/test_wrapper.py index 15aa1bc2..19087c7d 100644 --- a/test/test_wrapper.py +++ b/test/test_wrapper.py @@ -977,10 +977,8 @@ 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") + if not queue.device.il_version: + pytest.skip("SPIR-V program creation not supported by device") n = 50000 -- GitLab