From 0a71541ff225eb64754a3f04d9d11ebf8c9be44d Mon Sep 17 00:00:00 2001 From: Tim Besard Date: Thu, 12 Aug 2021 12:41:58 +0200 Subject: [PATCH] Only export the atomic macro on 1.6. --- src/device/intrinsics/atomics.jl | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/device/intrinsics/atomics.jl b/src/device/intrinsics/atomics.jl index ad256f94f5..a194910f67 100644 --- a/src/device/intrinsics/atomics.jl +++ b/src/device/intrinsics/atomics.jl @@ -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( :(+=) => :(+),