Skip to content

CI: test OpenCL.jl against this build's libspirv2clc - #31

Merged
maleadt merged 1 commit into
mainfrom
tb/ci-libspirv2clc
Nov 10, 2026
Merged

maleadt merged 1 commit into
mainfrom
tb/ci-libspirv2clc

Conversation

@maleadt

@maleadt maleadt commented Nov 10, 2026

Copy link
Copy Markdown
Member

OpenCL.jl now translates SPIR-V by calling the C API in spirv2clc_jll.libspirv2clc, not by running the spirv2clc executable. The OpenCL.jl job built only the executable and overrode only spirv2clc_path, so the poclc/ tests ran against the library from the released JLL rather than the code under test. The job has been failing on main since the C API was merged, and #30's fix never reached it: the CI log still shows the unfixed as_ushort(as_short(a) / as_short(b)) output.

This PR also builds and installs the c_api component, sets libspirv2clc_path alongside spirv2clc_path, and makes the override check cover both products, so the job fails up front if either override is ignored.

Locally, with both products pointing at #30's build, the six groups that fail on that PR pass (poclc/array, accumulate, findall, both indexing groups, unions: 1993/1993). Main still has the 16-bit signed division bug that #30 fixes, so this job should stay red here until #30 lands.

OpenCL.jl now translates through the C API in spirv2clc_jll's libspirv2clc
product instead of running the spirv2clc tool. The OpenCL.jl job only built
the tool and only overrode spirv2clc_path, so the poclc tests ran against
the released library and never saw the changes under test.

Build and install the C API library too, override both products, and check
both overrides before running the tests.
@maleadt
maleadt merged commit dc01be2 into main Nov 10, 2026
4 of 5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant