Skip to content

Cap KernelInterface at 0.4 - #217

Merged
maleadt merged 1 commit into
mainfrom
tb/ki-compat
Nov 27, 2026
Merged

maleadt merged 1 commit into
mainfrom
tb/ki-compat

Conversation

@maleadt

@maleadt maleadt commented Nov 27, 2026

Copy link
Copy Markdown
Member

KernelInterface 0.5 (JuliaGPU/KernelAbstractions.jl#990) removes KI.sub_group_size(backend): kernels only get a fixed sub-group width when they request one. AcceleratedKernels sizes its sub-group reductions and scans from that function (src/block.jl), so it would fail at run time as soon as a GPU back-end is released with KernelInterface 0.5.

AcceleratedKernels only reaches KernelInterface through KernelAbstractions' re-export, so nothing in its compat stops that combination. This adds KernelInterface as a direct dependency with compat 0.4, so that this and later 0.5.x releases stay on back-ends they work with. The port to KernelInterface 0.5 will follow as AcceleratedKernels 0.6.

Bumps the version to 0.5.15, so it can be registered before the back-ends move.

@christiangnrd

Copy link
Copy Markdown
Member

KernelInterface through KernelAbstractions' re-export

This technically means KA should only bump to KI 0.5 in a breaking release…

Should we add a sub_group_size in KA that calls first(sub_group_sizes()) if sub_group_sizes is defined?

AcceleratedKernels sizes its sub-group reductions and scans from
`KI.sub_group_size(backend)`, which KernelInterface 0.5 removes: only kernels
that request a width get a fixed one (JuliaGPU/KernelAbstractions.jl#990).
AcceleratedKernels reaches KernelInterface through KernelAbstractions' re-export
and so had no bound on it, and would fail at run time once the back-ends move to
0.5. Depending on KernelInterface directly, with compat 0.4, keeps this release
on back-ends it works with; the port to 0.5 needs a breaking release.
@maleadt
maleadt merged commit b5a4b85 into main Nov 27, 2026
16 of 17 checks passed
@maleadt
maleadt deleted the tb/ki-compat branch November 27, 2026 13:13
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