Skip to content

Commit 4681e2e

Browse files
[nfc][libomptarget] Write amdgcn macros in terms of compiler intrinsics
1 parent b0561b3 commit 4681e2e

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

openmp/libomptarget/deviceRTLs/amdgcn/src/target_impl.h

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,9 +19,9 @@
1919
#include <stdint.h>
2020
#include "amdgcn_interface.h"
2121

22-
#define DEVICE __device__
23-
#define INLINE __inline__ DEVICE
24-
#define NOINLINE __noinline__ DEVICE
22+
#define DEVICE __attribute__((device))
23+
#define INLINE inline DEVICE
24+
#define NOINLINE __attribute__((noinline)) DEVICE
2525

2626
////////////////////////////////////////////////////////////////////////////////
2727
// Kernel options

0 commit comments

Comments
 (0)