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 |
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:
|
377f43a to
bea2551
Compare
bea2551 to
d9e8016
Compare
75cf809 to
f41bd02
Compare
f41bd02 to
de7c136
Compare
de7c136 to
f90736c
Compare
f7c1884 to
69ead4d
Compare
69ead4d to
bd44b3f
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.