Repository navigation
Test checked rational multiplication on Intel's CPU runtime - #620
Merged
Merged
Conversation
GPUCompiler 2.23.2 lowers `llvm.smul.with.overflow` using OpenCL's `mul_hi` instead of OpSMulExtended, which Intel's CPU runtime and upstream PoCL don't implement. That fixes the `rational arithmetic` test on both (the latter is the `pocl_local` job), so it no longer needs skipping.
maleadt
force-pushed
the
tb/checked-mul
branch
from
November 18, 2026 14:01
e79d782 to
515c5e7
Compare
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #620 +/- ##
==========================================
- Coverage 91.10% 90.40% -0.70%
==========================================
Files 18 18
Lines 1810 1751 -59
==========================================
- Hits 1649 1583 -66
- Misses 161 168 +7 ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
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.
The
rational arithmetictest added in #604 multipliesInts with overflow checks, which the SPIR-V back-ends compile to OpSMulExtended. Upstream PoCL (thepocl_localjob, built against a stock translator) and Intel's CPU runtime don't implement it (Cannot find symbol _Z20__spirv_SMulExtendedll). The Khronos translator rejectsllvm.smul.with.overflowaltogether.JuliaGPU/GPUCompiler.jl#1104 lowers these intrinsics using OpenCL's
mul_hiinstead. This PR requires that release and drops the Intel skip.Locally, with the GPUCompiler branch,
pocl/intrinsicsandpoclc/intrinsicspass onpocl_jlland on upstream PoCL HEAD (d6614dcc6, built likepocl_local). The whole suite on upstream PoCL HEAD shows no other failures.intel/intrinsicspasses on Intel's CPU runtime. Without the GPUCompiler change, the test fails on both upstream PoCL and Intel's CPU runtime.The
khronosjob also needs the translator to handlellvm.ssub.with.overflow(fromchecked_neg/checked_subonRational), which is KhronosGroup/SPIRV-LLVM-Translator#4091, being backported in Yggdrasil.Needs a GPUCompiler release containing #1104 (the compat says 2.23.2).