Skip to content

Commit 560518e

Browse files
Forgotten change (#660)
1 parent d052112 commit 560518e

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/intrinsics.jl

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -310,7 +310,7 @@ macro kernel(backend, ex...)
310310
end
311311

312312
# destructure the kernel call
313-
Meta.isexpr(call, :call) || throw(ArgumentError("final argument to @kikern should be a function call"))
313+
Meta.isexpr(call, :call) || throw(ArgumentError("final argument to KI.@kernel should be a function call"))
314314
f = call.args[1]
315315
args = call.args[2:end]
316316

@@ -330,14 +330,14 @@ macro kernel(backend, ex...)
330330
for kwarg in macro_kwargs
331331
key, val = kwarg.args
332332
if key === :launch
333-
isa(val, Bool) || throw(ArgumentError("`launch` keyword argument to @kikern should be a Bool"))
333+
isa(val, Bool) || throw(ArgumentError("`launch` keyword argument to KI.@kernel should be a Bool"))
334334
launch = val::Bool
335335
else
336336
throw(ArgumentError("Unsupported keyword argument '$key'"))
337337
end
338338
end
339339
if !launch && !isempty(call_kwargs)
340-
error("@kikern with launch=false does not support launch-time keyword arguments; use them when calling the kernel")
340+
error("KI.@kernel with launch=false does not support launch-time keyword arguments; use them when calling the kernel")
341341
end
342342

343343
# FIXME: macro hygiene wrt. escaping kwarg values (this broke with 1.5)

0 commit comments

Comments
 (0)