We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3035067 commit 527fd0eCopy full SHA for 527fd0e
src/cpu.jl
@@ -275,23 +275,24 @@ KernelAbstractions.argconvert(k::Kernel{CPU}, arg) = arg
275
###
276
277
if Base.VERSION < v"1.7.0"
278
+
279
import KernelAbstractions: atomic_add!, atomic_and!, atomic_cas!,
280
atomic_dec!, atomic_inc!, atomic_max!,
281
atomic_min!, atomic_op!, atomic_or!,
282
atomic_sub!, atomic_xchg!, atomic_xor!
283
284
function atomic_error(args...)
- error("CPU Atomics are not allowed for julia version under 1.7!"
285
+ error("CPU Atomics are not allowed for julia version under 1.7!")
286
end
287
288
afxs = [atomic_add!, atomic_and!, atomic_cas!, atomic_dec!,
289
atomic_inc!, atomic_max!, atomic_min!, atomic_op!,
- atomic_or!, atomic_sub!, atomic_xchg!, atomic_xor! ]
290
+ atomic_or!, atomic_sub!, atomic_xchg!, atomic_xor!]
291
292
for afx in afxs
293
@inline function Cassette.overdub(::CPUCtx, ::typeof(afx), args...)
294
atomic_error(args...)
295
296
297
298
-end
-
0 commit comments