From f93818ae72980898234827f096720211e7646bfb Mon Sep 17 00:00:00 2001 From: Andreas Kloeckner <inform@tiker.net> Date: Thu, 4 Aug 2016 11:28:38 -0500 Subject: [PATCH] Fix SPIR-V test --- test/add-vectors.spv | Bin 0 -> 792 bytes test/test_wrapper.py | 8 ++++---- 2 files changed, 4 insertions(+), 4 deletions(-) create mode 100644 test/add-vectors.spv diff --git a/test/add-vectors.spv b/test/add-vectors.spv new file mode 100644 index 0000000000000000000000000000000000000000..21b25ed74b28b898b4d1be5bc803fd57fb43d057 GIT binary patch literal 792 zcma))PfNpK492r{n}6rjxy^%zi6D3p^q_)FM8Q!J#7|JVbx5IhqwR(}`mMbPKEK++ zj=m#H^5jY0<V~IG$(mWkcC2BC_ILKIYBibYdZ8QATk<N>ud_+~_;Q|Rfho_)v8wQv zvfyn>()ouX{LJo~jxxzM^SpExCJXOj9!8lP52NYGkKA}M9s5~0ja`)#&k@_q_ug}R zTlOfoYu1#VOj3F9YP#QS5@*S>@OP!heiTV5Ue^q&lO+B!3_eS&y@FljJjXg<L6GNk zSK^nlhq|XHeJWu-SMP!k&P?=rl>5wSM*dKpVxLL=Gc)h{T--xFX70%6UHcMFPd@Jn zhVIK}PaOQVBJ|glr={k3aMoqh3)rz38`AK=OSvs-!Q)&h0}i|7kaMlN@aeC#>9e%i z&9{1BCj-@^r<R18Z~CWi_5;Rw5=K3CL``A?-AbSP5^!>uvE;Hl?p);_$OkXEU#d$D ac1j)MWj?#1Px9}?!-rSq{^)DIk^BNES3$=B literal 0 HcmV?d00001 diff --git a/test/test_wrapper.py b/test/test_wrapper.py index 29020c8e..505f56ad 100644 --- a/test/test_wrapper.py +++ b/test/test_wrapper.py @@ -911,10 +911,10 @@ def test_spirv(ctx_factory): ctx = ctx_factory() queue = cl.CommandQueue(ctx) - # if (ctx._get_cl_version() < (2, 1) and - # cl.get_cl_header_version() < (2, 1)): - # from pytest import skip - # skip("SPIR-V program creation only available in OpenCL 2.1") + if (ctx._get_cl_version() < (2, 1) and + cl.get_cl_header_version() < (2, 1)): + from pytest import skip + skip("SPIR-V program creation only available in OpenCL 2.1") n = 50000 -- GitLab