Skip to content

Commit 2fe4502

Browse files
committed
KIKernel -> Kernel
1 parent d068b80 commit 2fe4502

File tree

2 files changed

+8
-8
lines changed

2 files changed

+8
-8
lines changed

src/intrinsics.jl

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -158,19 +158,19 @@ end
158158

159159

160160
"""
161-
KIKernel{Backend, BKern}
161+
Kernel{Backend, BKern}
162162
163-
KIKernel closure struct that is used to represent the backend
163+
Kernel closure struct that is used to represent the backend
164164
kernel on the host.
165165
166166
!!! note
167167
Backend implementations **must** implement:
168168
```
169-
(kernel::KIKernel{<:NewBackend})(args...; numworkgroups=nothing, workgroupsize=nothing, kwargs...)
169+
(kernel::Kernel{<:NewBackend})(args...; numworkgroups=nothing, workgroupsize=nothing, kwargs...)
170170
```
171171
As well as the on-device functionality.
172172
"""
173-
struct KIKernel{B, Kern}
173+
struct Kernel{B, Kern}
174174
backend::B
175175
kern::Kern
176176
end
@@ -185,7 +185,7 @@ launching a kernel.
185185
!!! note
186186
Backend implementations **must** implement:
187187
```
188-
kernel_max_work_group_size(backend::NewBackend, kern::KIKernel{<:NewBackend}; max_work_items::Int=typemax(Int))::Int
188+
kernel_max_work_group_size(backend::NewBackend, kern::Kernel{<:NewBackend}; max_work_items::Int=typemax(Int))::Int
189189
```
190190
As well as the on-device functionality.
191191
"""

src/pocl/backend.jl

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -143,10 +143,10 @@ KI.kiconvert(::POCLBackend, arg) = clconvert(arg)
143143

144144
function 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)
147147
end
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)
165165
end
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))
170170
end

0 commit comments

Comments
 (0)