You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@@ -60,7 +60,7 @@ This allows for two different configurations:
60
60
61
61
1. `cpu={true, false}`: Disables code-generation of the CPU function. This relaxes semantics such that KernelAbstractions primitives can be used in non-kernel functions.
62
62
2. `inbounds={false, true}`: Enables a forced `@inbounds` macro around the function definition in the case the user is using too many `@inbounds` already in their kernel. Note that this can lead to incorrect results, crashes, etc and is fundamentally unsafe. Be careful!
63
-
3. `unsafe_indicies={false, true}`: Disables the implicit validation of indicies, users must avoid `@index(Global)`.
63
+
3. `unsafe_indices={false, true}`: Disables the implicit validation of indices, users must avoid `@index(Global)`.
64
64
65
65
- [`@context`](@ref)
66
66
@@ -72,7 +72,7 @@ macro kernel(ex...)
72
72
return__kernel(ex[1], true, false, false)
73
73
else
74
74
generate_cpu =true
75
-
unsafe_indicies=false
75
+
unsafe_indices=false
76
76
force_inbounds =false
77
77
for i in1:(length(ex) -1)
78
78
if ex[i] isa Expr && ex[i].head == :(=) &&
@@ -82,19 +82,19 @@ macro kernel(ex...)
82
82
ex[i].args[1] ==:inbounds&& ex[i].args[2] isa Bool
83
83
force_inbounds = ex[i].args[2]
84
84
elseif ex[i] isa Expr && ex[i].head == :(=) &&
85
-
ex[i].args[1] ==:unsafe_indicies&& ex[i].args[2] isa Bool
86
-
unsafe_indicies= ex[i].args[2]
85
+
ex[i].args[1] ==:unsafe_indices&& ex[i].args[2] isa Bool
0 commit comments