Skip to content

Commit

Permalink
[openmp] Use GCC style intrinsics for atomics on Clang-cl on aarch64 too
Browse files Browse the repository at this point in the history
This fixes compilation in the Clang-cl configuration on aarch64;
Clang doesn't implement all the aarch64 MSVC atomic intrinsics yet.

Differential Revision: https://reviews.llvm.org/D138737
  • Loading branch information
mstorsjo committed Nov 28, 2022
1 parent 30d5b75 commit db6406a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion openmp/runtime/src/kmp_os.h
Expand Up @@ -456,7 +456,7 @@ enum kmp_mem_fence_type {

// Synchronization primitives

#if KMP_ASM_INTRINS && KMP_OS_WINDOWS && !((KMP_ARCH_AARCH64 || KMP_ARCH_ARM) && defined(__GNUC__))
#if KMP_ASM_INTRINS && KMP_OS_WINDOWS && !((KMP_ARCH_AARCH64 || KMP_ARCH_ARM) && (KMP_COMPILER_CLANG || KMP_COMPILER_GCC))

#if KMP_MSVC_COMPAT && !KMP_COMPILER_CLANG
#pragma intrinsic(InterlockedExchangeAdd)
Expand Down

0 comments on commit db6406a

Please sign in to comment.