Repository navigation
CI: test OpenCL.jl against this build's libspirv2clc - #31
Merged
Merged
Conversation
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.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
OpenCL.jl now translates SPIR-V by calling the C API in
spirv2clc_jll.libspirv2clc, not by running thespirv2clcexecutable. The OpenCL.jl job built only the executable and overrode onlyspirv2clc_path, so thepoclc/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 unfixedas_ushort(as_short(a) / as_short(b))output.This PR also builds and installs the
c_apicomponent, setslibspirv2clc_pathalongsidespirv2clc_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, bothindexinggroups,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.