Skip to content

Only support PoCL as built by pocl_jll - #623

Merged
maleadt merged 1 commit into
mainfrom
tb/patched-pocl-only
Nov 19, 2026
Merged

maleadt merged 1 commit into
mainfrom
tb/patched-pocl-only

Conversation

@maleadt

@maleadt maleadt commented Nov 19, 2026

Copy link
Copy Markdown
Member

Upstream PoCL miscompiles kernels in which a block is reached from different barrier-separated regions, and declined the fix (pocl/pocl#2281). Our JLLs carry it as a patch. Since #616, every function's throw sites share one reporting block, so any kernel with bounds checks on both sides of a barrier has that shape. Under --check-bounds=yes:

  • the pocl_local job, which builds upstream PoCL HEAD (Debug), aborts in ParallelRegion::chainAfter (poclc/gpuarrays/unions, KernelAbstractions' any kernel);
  • a distribution's PoCL 7.2 (Arch, Release) gives wrong results for 93 of 384 any/all/count checks on CLArray{Bool}, against 0 before Report exceptions by throw site #616 and 0 with pocl_jll.

As PoCL is only supported as built by pocl_jll, this stops testing upstream PoCL, drops the KernelAbstractions Barriers skip that was there for it, and says in the installation instructions to use PoCL through pocl_jll.

Upstream PoCL miscompiles kernels whose throw sites are reached from
different barrier-separated regions, and declined the fix (pocl/pocl#2281),
which the JLLs carry as a patch. Since #616 every kernel with bounds checks
on both sides of a barrier has that shape: `any`, `all` and `count` give
wrong results on a distribution's PoCL 7.2 under `--check-bounds=yes`, and
the `pocl_local` job, which builds upstream PoCL HEAD, aborts in
`ParallelRegion::chainAfter`.

Stop testing upstream PoCL, drop the test skip for it, and document that
PoCL should be used through pocl_jll.
@codecov

codecov Bot commented Nov 19, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 90.04%. Comparing base (e960c4f) to head (04e1052).

Additional details and impacted files
@@            Coverage Diff             @@
##             main     #623      +/-   ##
==========================================
- Coverage   90.78%   90.04%   -0.75%     
==========================================
  Files          18       18              
  Lines        1748     1688      -60     
==========================================
- Hits         1587     1520      -67     
- Misses        161      168       +7     

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@maleadt
maleadt merged commit 77b6545 into main Nov 19, 2026
15 checks passed
@maleadt
maleadt deleted the tb/patched-pocl-only branch November 19, 2026 16:31
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