Skip to content

Commit f0dd162

Browse files
committed
consistent names
1 parent 59e4bc8 commit f0dd162

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/abstract_gpu_interface.jl

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -109,9 +109,9 @@ end
109109

110110

111111
"""
112-
gpu_call(f, A::GPUArray, args::Tuple, configuration = length(A))
112+
gpu_call(kernel::Function, A::GPUArray, args::Tuple, configuration = length(A))
113113
114-
Calls function `f` on the GPU.
114+
Calls function `kernel` on the GPU.
115115
`A` must be an GPUArray and will help to dispatch to the correct GPU backend
116116
and supplies queues and contexts.
117117
Calls the kernel function with `kernel(state, args...)`, where state is dependant on the backend
@@ -123,7 +123,7 @@ Optionally, a launch configuration can be supplied in the following way:
123123
2) Pass a tuple of integer tuples to define blocks and threads per blocks!
124124
125125
"""
126-
function gpu_call(f, A::GPUArray, args::Tuple, configuration = length(A))
126+
function gpu_call(kernel, A::GPUArray, args::Tuple, configuration = length(A))
127127
ITuple = NTuple{N, Integer} where N
128128
# If is a single integer, we assume it to be the global size / total number of threads one wants to launch
129129
thread_blocks = if isa(configuration, Integer)
@@ -147,7 +147,7 @@ function gpu_call(f, A::GPUArray, args::Tuple, configuration = length(A))
147147
`linear_index` will be inbetween 1:prod((blocks..., threads...))
148148
""")
149149
end
150-
_gpu_call(f, A, args, thread_blocks)
150+
_gpu_call(kernel, A, args, thread_blocks)
151151
end
152152

153153
# Internal GPU call function, that needs to be overloaded by the backends.

0 commit comments

Comments
 (0)