Skip to content

Add KernelAbstractions device selection interface - #483

Merged
christiangnrd merged 9 commits into
mainfrom
kadev
Sep 18, 2026
Merged

christiangnrd merged 9 commits into
mainfrom
kadev

Conversation

@christiangnrd

@christiangnrd christiangnrd commented Sep 14, 2026

Copy link
Copy Markdown
Member

The KA 0.10 docs (rightfully) make this a mandatory implementation if a backend supports multiple devices.

This adds a platform field to OpenCLBackend.

@christiangnrd
christiangnrd marked this pull request as ready for review September 14, 2026 12:39
@christiangnrd
christiangnrd force-pushed the kadev branch 2 times, most recently from f088dfd to db3f849 Compare September 14, 2026 18:26
@christiangnrd
christiangnrd changed the base branch from main to devsort September 14, 2026 18:34
@christiangnrd
christiangnrd added this pull request to stack #486 September 14, 2026 18:34
@codecov

codecov Bot commented Sep 15, 2026

Copy link
Copy Markdown

Codecov Report

❌ Patch coverage is 76.19048% with 5 lines in your changes missing coverage. Please review.
✅ Project coverage is 84.26%. Comparing base (08a3177) to head (5350e44).

Files with missing lines Patch % Lines
src/OpenCLKernels.jl 76.19% 5 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main     #483      +/-   ##
==========================================
- Coverage   84.45%   84.26%   -0.19%     
==========================================
  Files          14       14              
  Lines        1087     1106      +19     
==========================================
+ Hits          918      932      +14     
- Misses        169      174       +5     

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

Comment thread src/OpenCLKernels.jl Outdated
Comment thread src/OpenCLKernels.jl Outdated
Base automatically changed from devsort to main September 15, 2026 15:29
Comment thread src/OpenCLKernels.jl Outdated
end

function KA.allocate(::OpenCLBackend, ::Type{T}, dims::Tuple; unified::Bool = false) where T
function check_platform(b::OpenCLBackend)

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You likely want to outline the warning and inline the check.

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If 7f6383e looks good to you, I’ll merge once tests pass

@christiangnrd
christiangnrd force-pushed the kadev branch 2 times, most recently from 7f6383e to 54ecaf6 Compare September 17, 2026 22:37
@christiangnrd
christiangnrd merged commit d8215bf into main Sep 18, 2026
15 checks passed
@christiangnrd
christiangnrd deleted the kadev branch September 18, 2026 02:25
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