@@ -224,18 +224,18 @@ Used for certain algorithm optimizations.
224224multiprocessor_count (_) = 0
225225
226226"""
227- kiconvert (::NewBackend, arg)
227+ argconvert (::NewBackend, arg)
228228
229229This function is called for every argument to be passed to a kernel, allowing it to be
230230converted to a GPU-friendly format.
231231
232232!!! note
233233 Backend implementations **must** implement:
234234 ```
235- kiconvert (::NewBackend, arg)
235+ argconvert (::NewBackend, arg)
236236 ```
237237"""
238- function kiconvert end
238+ function argconvert end
239239
240240"""
241241 KI.kifunction(::NewBackend, f::F, tt::TT=Tuple{}; name=nothing, kwargs...) where {F,TT}
@@ -269,7 +269,7 @@ High-level interface for executing code on a GPU.
269269The `@kikernel` macro should prefix a call, with `func` a callable function or object that
270270should return nothing. It will be compiled to a function native to the specified `backend`
271271upon first use, and to a certain extent arguments will be converted and managed automatically
272- using `kiconvert `. Finally, if `launch=true`, the newly created callable kernel object is
272+ using `argconvert `. Finally, if `launch=true`, the newly created callable kernel object is
273273called and launched according to the specified `backend`.
274274
275275There are a few keyword arguments that influence the behavior of `@kikernel`:
@@ -333,8 +333,8 @@ macro kikernel(backend, ex...)
333333 quote
334334 $ f_var = $ f
335335 GC. @preserve $ (vars... ) $ f_var begin
336- $ kernel_f = $ kiconvert ($ backend, $ f_var)
337- $ kernel_args = Base. map (x -> $ kiconvert ($ backend, x), ($ (var_exprs... ),))
336+ $ kernel_f = $ argconvert ($ backend, $ f_var)
337+ $ kernel_args = Base. map (x -> $ argconvert ($ backend, x), ($ (var_exprs... ),))
338338 $ kernel_tt = Tuple{Base. map (Core. Typeof, $ kernel_args)... }
339339 $ kernel = $ kifunction ($ backend, $ kernel_f, $ kernel_tt; $ (compiler_kwargs... ))
340340 if $ launch
0 commit comments