Skip to content

Commit

Permalink
Merge pull request #1097 from JuliaGPU/tb/atomic
Browse files Browse the repository at this point in the history
Only export the atomic macro on 1.6.
  • Loading branch information
maleadt authored Aug 13, 2021
2 parents 7fe42ca + 0a71541 commit e7f1ef2
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/device/intrinsics/atomics.jl
Original file line number Diff line number Diff line change
Expand Up @@ -368,7 +368,9 @@ atomic_dec!
# well as acquire/release operations to implement the fallback functionality where any
# operation can be applied atomically.

if VERSION <= v"1.7-"
export @atomic
end

const inplace_ops = Dict(
:(+=) => :(+),
Expand Down

0 comments on commit e7f1ef2

Please sign in to comment.