Skip to content

ci(opencl): run POCL under --check-bounds=auto; skip scan on POCL - #104

Draft
shreyas-omkar wants to merge 1 commit into
JuliaGPU:mainfrom
shreyas-omkar:pocl-ci-fix-check
Draft

ci(opencl): run POCL under --check-bounds=auto; skip scan on POCL#104
shreyas-omkar wants to merge 1 commit into
JuliaGPU:mainfrom
shreyas-omkar:pocl-ci-fix-check

Conversation

@shreyas-omkar

Copy link
Copy Markdown
Member

The OpenCL job used julia-actions/julia-runtest's default --check-bounds=yes. POCL miscompiles our @LocalMem + @synchronize kernels (reduce / predicates / sort) when bounds checks are forced on, raising a spurious "Out-of-bounds array access" and segfaulting the worker. The kernels are correct: the same code passes on CUDA under --check-bounds=yes and on POCL under auto. Every other AK backend is tested under default/auto bounds, so force this job to auto too.

Under auto, POCL instead miscompiles the multi-block scan (accumulate!, and RadixSort which scans a histogram internally) it deadlocks / returns wrong results, while being correct on every real backend and on POCL under yes. Since neither bounds setting makes both halves pass on POCL, skip the scan-dependent tests on the opencl backend only: the accumulate suite (dropped in runtests.jl) and RadixSort (guarded by a new TEST_SCAN flag, false only for opencl).

The OpenCL job used julia-actions/julia-runtest's default --check-bounds=yes.
POCL miscompiles our @LocalMem + @synchronize kernels (reduce / predicates /
sort) when bounds checks are forced on, raising a spurious "Out-of-bounds array
access" and segfaulting the worker. The kernels are correct: the same code
passes on CUDA under --check-bounds=yes and on POCL under auto. Every other AK
backend is tested under default/auto bounds, so force this job to auto too.

Under auto, POCL instead miscompiles the multi-block scan (accumulate!, and
RadixSort which scans a histogram internally) — it deadlocks / returns wrong
results, while being correct on every real backend and on POCL under yes. Since
neither bounds setting makes both halves pass on POCL, skip the scan-dependent
tests on the opencl backend only: the accumulate suite (dropped in runtests.jl)
and RadixSort (guarded by a new TEST_SCAN flag, false only for opencl).

Verified: full --opencl suite green under auto with pocl_jll 7.1.3+5
(37985/37985 pass).

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
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