From 3a400f54fa842215641939faf246cf511bebde85 Mon Sep 17 00:00:00 2001 From: Tim Besard Date: Tue, 10 Nov 2026 14:34:28 +0100 Subject: [PATCH 1/2] Require spirv2clc_jll 0.2.8 spirv2clc 0.2.7 translates 8- and 16-bit signed division to C that doesn't compile, as the division promotes to int. AcceleratedKernels 0.5.12 emits such divisions, which broke the poclc tests. 0.2.8 fixes that, and also translates OpSMulExtended. --- Project.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Project.toml b/Project.toml index c1ee4538..7109edf5 100644 --- a/Project.toml +++ b/Project.toml @@ -53,4 +53,4 @@ SPIRV_LLVM_Backend_jll = "23" SPIRV_Tools_jll = "2025.1" UnsafeAtomics = "0.4" julia = "1.10" -spirv2clc_jll = "0.2.7" +spirv2clc_jll = "0.2.8" From 534400b5423b1735f65673cf81160755b83ebbdb Mon Sep 17 00:00:00 2001 From: Tim Besard Date: Tue, 10 Nov 2026 14:34:28 +0100 Subject: [PATCH 2/2] Only run OpenCL.jl's own tests on Intel's CPU runtime Intel's kernel compiler segfaults on some GPUArrays and AcceleratedKernels kernels (#558, #559). The crashing kernels differ between hosts, and AcceleratedKernels 0.5.12 reached the same bug from two more tests. Skip the GPUArrays testsuite on this runtime instead of listing its tests one by one. --- test/runtests.jl | 19 +++++++------------ 1 file changed, 7 insertions(+), 12 deletions(-) diff --git a/test/runtests.jl b/test/runtests.jl index c3006676..7a4a91da 100644 --- a/test/runtests.jl +++ b/test/runtests.jl @@ -148,17 +148,14 @@ if args.list === nothing end end -# Intel's CPU runtime crashes the process while compiling some of the GPUArrays kernels -# (a segfault in the LLVM optimizer of its kernel compiler; #558 = intel/llvm#23517, -# #559 = intel/llvm#23518), so skip the tests that use them. "sum prod" hits the #559 crash -# through `mapreduce(*, +, A, B)` on multi-dimensional arrays; which element types trigger -# it differs between hosts. +# Only run OpenCL.jl's own tests on Intel's CPU runtime. Its kernel compiler segfaults on +# some of the GPUArrays and AcceleratedKernels kernels (#558 = intel/llvm#23517, #559 = +# intel/llvm#23518). Which kernels crash differs between hosts, and every release of those +# packages can reach the same bugs from other tests. for t in targets t.platform == "Intel(R) OpenCL" || continue - for name in ("gpuarrays/accumulate", "gpuarrays/linalg/core", "gpuarrays/reductions/base", - "gpuarrays/reductions/contract", "gpuarrays/reductions/== isequal", - "gpuarrays/reductions/sum prod") - delete!(testsuite, "$(t.label)/$name") + for name in collect(keys(testsuite)) + startswith(name, "$(t.label)/gpuarrays/") && delete!(testsuite, name) end end @@ -169,9 +166,7 @@ end if !Base.BinaryPlatforms.CPUID.test_cpu_feature(Base.BinaryPlatforms.CPUID.JL_X86_avx512f) for t in targets t.platform == "Intel(R) OpenCL" || continue - for name in ("device/random", "gpuarrays/random") - delete!(testsuite, "$(t.label)/$name") - end + delete!(testsuite, "$(t.label)/device/random") end end