Skip to content

Commit aaf20a7

Browse files
committed
Remove redundant parameter
1 parent 2fe4502 commit aaf20a7

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

src/intrinsics.jl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -176,7 +176,7 @@ struct Kernel{B, Kern}
176176
end
177177

178178
"""
179-
kernel_max_work_group_size(backend, kern; [max_work_items::Int])::Int
179+
kernel_max_work_group_size(kern; [max_work_items::Int])::Int
180180
181181
The maximum workgroup size limit for a kernel as reported by the backend.
182182
This function should always be used to determine the workgroup size before
@@ -185,7 +185,7 @@ launching a kernel.
185185
!!! note
186186
Backend implementations **must** implement:
187187
```
188-
kernel_max_work_group_size(backend::NewBackend, kern::Kernel{<:NewBackend}; max_work_items::Int=typemax(Int))::Int
188+
kernel_max_work_group_size(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: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -164,7 +164,7 @@ function (obj::KI.Kernel{POCLBackend})(args...; numworkgroups = nothing, workgro
164164
return obj.kern(args...; local_size, global_size)
165165
end
166166

167-
function KI.kernel_max_work_group_size(::POCLBackend, kikern::KI.Kernel{<:POCLBackend}; max_work_items::Int = typemax(Int))::Int
167+
function KI.kernel_max_work_group_size(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

test/intrinsics.jl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -80,8 +80,8 @@ function intrinsics_testsuite(backend, AT)
8080
results = AT(zeros(Int, 6, N))
8181
kernel = KI.@kikernel backend() launch = false test_intrinsics_kernel(results)
8282

83-
@test KI.kernel_max_work_group_size(backend(), kernel) isa Int
84-
@test KI.kernel_max_work_group_size(backend(), kernel; max_work_items = 1) == 1
83+
@test KI.kernel_max_work_group_size(kernel) isa Int
84+
@test KI.kernel_max_work_group_size(kernel; max_work_items = 1) == 1
8585

8686
kernel(results, workgroupsize = 4, numworkgroups = 4)
8787
KernelAbstractions.synchronize(backend())

0 commit comments

Comments
 (0)