KernelInterface#403
Open
christiangnrd wants to merge 11 commits into
Open
Conversation
Contributor
|
Your PR requires formatting changes to meet the project's style guidelines. Click here to view the suggested changes.diff --git a/src/OpenCLKernels.jl b/src/OpenCLKernels.jl
index 626b7fa..4dcfbdc 100644
--- a/src/OpenCLKernels.jl
+++ b/src/OpenCLKernels.jl
@@ -129,9 +129,9 @@ end
KI.argconvert(::OpenCLBackend, arg) = kernel_convert(arg)
-function KI.kernel_function(::OpenCLBackend, f::F, tt::TT=Tuple{}; name = nothing, kwargs...) where {F,TT}
+function KI.kernel_function(::OpenCLBackend, f::F, tt::TT = Tuple{}; name = nothing, kwargs...) where {F, TT}
kern = clfunction(f, tt; name, kwargs...)
- KI.Kernel{OpenCLBackend, typeof(kern)}(OpenCLBackend(), kern)
+ return KI.Kernel{OpenCLBackend, typeof(kern)}(OpenCLBackend(), kern)
end
function (obj::KI.Kernel{OpenCLBackend})(args...; numworkgroups = 1, workgroupsize = 1)
@@ -147,15 +147,15 @@ function (obj::KI.Kernel{OpenCLBackend})(args...; numworkgroups = 1, workgroupsi
end
-function KI.kernel_max_work_group_size(kernel::KI.Kernel{<:OpenCLBackend}; max_work_items::Int=typemax(Int))::Int
+function KI.kernel_max_work_group_size(kernel::KI.Kernel{<:OpenCLBackend}; max_work_items::Int = typemax(Int))::Int
wginfo = cl.work_group_info(kernel.kern.fun, cl.device())
- Int(min(wginfo.size, max_work_items))
+ return Int(min(wginfo.size, max_work_items))
end
function KI.max_work_group_size(::OpenCLBackend)::Int
- Int(cl.device().max_work_group_size)
+ return Int(cl.device().max_work_group_size)
end
function KI.multiprocessor_count(::OpenCLBackend)::Int
- Int(cl.device().max_compute_units)
+ return Int(cl.device().max_compute_units)
end
## Indexing Functions |
christiangnrd
force-pushed
the
intrinsics
branch
from
November 18, 2025 02:42
d7c864a to
377f43a
Compare
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## master #403 +/- ##
==========================================
+ Coverage 80.84% 82.46% +1.62%
==========================================
Files 12 11 -1
Lines 736 730 -6
==========================================
+ Hits 595 602 +7
+ Misses 141 128 -13 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
christiangnrd
force-pushed
the
intrinsics
branch
from
November 18, 2025 03:27
377f43a to
bea2551
Compare
christiangnrd
force-pushed
the
intrinsics
branch
from
December 15, 2025 19:23
bea2551 to
d9e8016
Compare
christiangnrd
force-pushed
the
intrinsics
branch
2 times, most recently
from
January 11, 2026 21:44
75cf809 to
f41bd02
Compare
christiangnrd
force-pushed
the
intrinsics
branch
from
January 22, 2026 15:03
f41bd02 to
de7c136
Compare
christiangnrd
force-pushed
the
intrinsics
branch
from
January 31, 2026 17:29
de7c136 to
f90736c
Compare
christiangnrd
force-pushed
the
intrinsics
branch
2 times, most recently
from
February 13, 2026 23:00
f7c1884 to
69ead4d
Compare
christiangnrd
force-pushed
the
intrinsics
branch
from
February 19, 2026 15:22
69ead4d to
bd44b3f
Compare
christiangnrd
force-pushed
the
intrinsics
branch
3 times, most recently
from
June 4, 2026 17:21
43ea79e to
81dc224
Compare
christiangnrd
force-pushed
the
intrinsics
branch
2 times, most recently
from
June 16, 2026 19:07
0e1a1a7 to
8cba423
Compare
christiangnrd
force-pushed
the
intrinsics
branch
2 times, most recently
from
June 18, 2026 14:23
585336d to
3c2f80b
Compare
christiangnrd
force-pushed
the
intrinsics
branch
2 times, most recently
from
July 2, 2026 14:02
84247df to
3446d9f
Compare
christiangnrd
force-pushed
the
intrinsics
branch
3 times, most recently
from
July 15, 2026 13:50
06975c5 to
4c8efce
Compare
christiangnrd
force-pushed
the
intrinsics
branch
2 times, most recently
from
July 17, 2026 19:32
8ed91f1 to
9095687
Compare
christiangnrd
force-pushed
the
intrinsics
branch
from
July 22, 2026 17:28
2942bbc to
ef5b8ae
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
No description provided.