Skip to content

Commit e7f1ef2

Browse files
authored
Merge pull request #1097 from JuliaGPU/tb/atomic
Only export the atomic macro on 1.6.
2 parents 7fe42ca + 0a71541 commit e7f1ef2

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/device/intrinsics/atomics.jl

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -368,7 +368,9 @@ atomic_dec!
368368
# well as acquire/release operations to implement the fallback functionality where any
369369
# operation can be applied atomically.
370370

371+
if VERSION <= v"1.7-"
371372
export @atomic
373+
end
372374

373375
const inplace_ops = Dict(
374376
:(+=) => :(+),

0 commit comments

Comments
 (0)