@@ -143,10 +143,10 @@ KI.kiconvert(::POCLBackend, arg) = clconvert(arg)
143143
144144function KI. kifunction (:: POCLBackend , f:: F , tt:: TT = Tuple{}; name = nothing , kwargs... ) where {F, TT}
145145 kern = clfunction (f, tt; name, kwargs... )
146- return KI. KIKernel {POCLBackend, typeof(kern)} (POCLBackend (), kern)
146+ return KI. Kernel {POCLBackend, typeof(kern)} (POCLBackend (), kern)
147147end
148148
149- function (obj:: KI.KIKernel {POCLBackend} )(args... ; numworkgroups = nothing , workgroupsize = nothing )
149+ function (obj:: KI.Kernel {POCLBackend} )(args... ; numworkgroups = nothing , workgroupsize = nothing )
150150 local_size = StaticArrays. MVector {3} ((1 , 1 , 1 ))
151151 if ! isnothing (workgroupsize)
152152 for (i, val) in enumerate (workgroupsize)
@@ -164,7 +164,7 @@ function (obj::KI.KIKernel{POCLBackend})(args...; numworkgroups = nothing, workg
164164 return obj. kern (args... ; local_size, global_size)
165165end
166166
167- function KI. kernel_max_work_group_size (:: POCLBackend , kikern:: KI.KIKernel {<:POCLBackend} ; max_work_items:: Int = typemax (Int)):: Int
167+ function KI. kernel_max_work_group_size (:: POCLBackend , kikern:: KI.Kernel {<:POCLBackend} ; max_work_items:: Int = typemax (Int)):: Int
168168 wginfo = cl. work_group_info (kikern. kern. fun, device ())
169169 return Int (min (wginfo. size, max_work_items))
170170end
0 commit comments