Skip to content

KernelAbstractions 0.10 - #475

Closed
christiangnrd wants to merge 3 commits into
kinterfacefrom
intrinsics
Closed

christiangnrd wants to merge 3 commits into
kinterfacefrom
intrinsics

Conversation

@christiangnrd

@christiangnrd christiangnrd commented Aug 19, 2026 •

Copy link
Copy Markdown
Member

Do not merge until KernelInterface has been reviewed and interface fully decided

@codecov

codecov Bot commented Sep 26, 2026 •

Copy link
Copy Markdown

Codecov Report

❌ Patch coverage is 92.15686% with 4 lines in your changes missing coverage. Please review.
✅ Project coverage is 82.30%. Comparing base (24aa1f2) to head (ec09404).

Files with missing lines Patch % Lines
ext/KernelAbstractionsExt.jl 92.15% 4 Missing ⚠️
Additional details and impacted files
@@              Coverage Diff               @@
##           kinterface     #475      +/-   ##
==============================================
+ Coverage       82.19%   82.30%   +0.10%     
==============================================
  Files              20       20              
  Lines            1691     1639      -52     
==============================================
- Hits             1390     1349      -41     
+ Misses            301      290      -11     

☔ 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.

christiangnrd and others added 3 commits September 28, 2026 07:47
Implement the KernelInterface (KI) API for OpenCL.jl in an internal
`OpenCLInterface` module, reachable through `KI.get_backend` on a CLArray.
The existing KernelAbstractions 0.9 back end moves unchanged to
OpenCLKernelsOld.jl. Run the KI testsuite as part of the test suite.

The device's work-group limits, including the per-dimension limits that
KI 0.2.3 uses to bound automatically chosen workgroup sizes (NVIDIA, for
example, only allows 64 work-items along the third dimension), are
cached per device because querying them allocates on every launch.

Co-authored-by: Tim Besard <tim.besard@gmail.com>
KernelAbstractions 0.10 builds on KernelInterface, so the KernelInterface
back end becomes the public `OpenCLBackend` (in `OpenCLKernels`), and the
KernelAbstractions-specific parts move to a `KernelAbstractionsExt`
extension. The KernelAbstractions 0.9 back end is removed.

Kernel launches with an automatically tuned workgroup size compute it
from the number of indices along each dimension, as an ndrange may now
contain ranges, and return before compiling when the ndrange is empty.

Skip the KernelAbstractions tests that only apply to the CPU back end.

Co-authored-by: Tim Besard <tim.besard@gmail.com>
The compat also admits 0.9, because Pkg orders 0.10.0-dev before 0.10.0.
Pkg < 1.12 drops a developed weak dependency from the project, so restore
the project after developing KernelAbstractions on those versions.

Co-authored-by: Tim Besard <tim.besard@gmail.com>
@maleadt

maleadt commented Sep 30, 2026

Copy link
Copy Markdown
Member

#519

@maleadt maleadt closed this Sep 30, 2026
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.

2 participants