Skip to content

Commit b91e429

Browse files
committed
[Clang][ARM] Only try to redefine builtins for non-CUDA
Signed-off-by: Sarnie, Nick <[email protected]>
1 parent b11e1ba commit b91e429

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

clang/lib/Headers/arm_acle.h

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,8 @@
2727
extern "C" {
2828
#endif
2929

30+
#if !defined(__CUDA__)
31+
3032
/* 7 SYNCHRONIZATION, BARRIER AND HINT INTRINSICS */
3133
/* 7.3 Memory barriers */
3234
#if !__has_builtin(__dmb)
@@ -70,6 +72,7 @@ static __inline__ void __attribute__((__always_inline__, __nodebug__)) __yield(v
7072
__builtin_arm_yield();
7173
}
7274
#endif
75+
#endif // #if !defined(__CUDA__)
7376

7477
#if defined(__ARM_32BIT_STATE) && __ARM_32BIT_STATE
7578
#define __dbg(t) __builtin_arm_dbg(t)

0 commit comments

Comments
 (0)