Skip to content

Commit dfc87cc

Browse files
authored
[SYCL][libdevice] Add always_inline for libdevice functions. (#5979)
Signed-off-by: jinge90 <[email protected]>
1 parent 7baf152 commit dfc87cc

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

libdevice/device.h

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,8 @@
1717

1818
#ifdef __SPIR__
1919
#ifdef __SYCL_DEVICE_ONLY__
20-
#define DEVICE_EXTERNAL SYCL_EXTERNAL __attribute__((weak))
20+
#define DEVICE_EXTERNAL \
21+
SYCL_EXTERNAL __attribute__((weak)) __attribute__((always_inline))
2122
#else // __SYCL_DEVICE_ONLY__
2223
#define DEVICE_EXTERNAL __attribute__((weak))
2324
#endif // __SYCL_DEVICE_ONLY__

0 commit comments

Comments
 (0)