From 515c5e788798405fd849469198e4f79112b0663e Mon Sep 17 00:00:00 2001 From: Tim Besard Date: Wed, 18 Nov 2026 11:37:32 +0100 Subject: [PATCH] Test checked rational multiplication on Intel's CPU runtime 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. --- Project.toml | 2 +- test/intrinsics.jl | 7 +------ 2 files changed, 2 insertions(+), 7 deletions(-) diff --git a/Project.toml b/Project.toml index e6c17c82..ea9dcc65 100644 --- a/Project.toml +++ b/Project.toml @@ -34,7 +34,7 @@ SPIRVIntrinsics = {path = "lib/intrinsics"} [compat] Adapt = "4" GPUArrays = "12.1" -GPUCompiler = "2.20" +GPUCompiler = "2.23.2" GPUToolbox = "3.6" KernelAbstractions = "0.10" KernelInterface = "0.4" diff --git a/test/intrinsics.jl b/test/intrinsics.jl index 6706df63..29bcb39c 100644 --- a/test/intrinsics.jl +++ b/test/intrinsics.jl @@ -235,12 +235,7 @@ end xs = [1//3, -5//7, 3//2, 2//-9] ys = [2//5, 7//3, -1//4, 9//2] zs = [-1//2, 1//7, 3//8, 1//1] - # Intel's CPU runtime can't compile the `OpSMulExtended` of checked `Int` products - if OpenCL.OpenCLKernels.intel_cpu_runtime(cl.device()) - @test_skip "checked rational multiplication on Intel's CPU runtime" - else - @test Array(map(muladd, CLArray(xs), CLArray(ys), CLArray(zs))) == muladd.(xs, ys, zs) - end + @test Array(map(muladd, CLArray(xs), CLArray(ys), CLArray(zs))) == muladd.(xs, ys, zs) @test Array(map(-, CLArray(xs))) == -xs @test Array(map((n, d) -> n // d, CLArray([1, 3, -4]), CLArray([-2, 6, -8]))) == [-1//2, 1//2, 1//2]