diff options
| author | Jon Chesterfield <jonathanchesterfield@gmail.com> | 2019-08-07 15:24:12 +0000 |
|---|---|---|
| committer | Jon Chesterfield <jonathanchesterfield@gmail.com> | 2019-08-07 15:24:12 +0000 |
| commit | ae0178bee72c201ba3b834adae6bffedec6ec04e (patch) | |
| tree | 38b56edb6ab859b7193249c33e2cd1a549c9289e | |
| parent | 7d4ab7751d6c99f0bf34503ea83ac6189103e421 (diff) | |
| download | bcm5719-llvm-ae0178bee72c201ba3b834adae6bffedec6ec04e.tar.gz bcm5719-llvm-ae0178bee72c201ba3b834adae6bffedec6ec04e.zip | |
Use forceinline. Necessary for nvcc to inline small functions within the bitcode library
Summary:
[libomptarget] Use forceinline. Necessary for nvcc to inline small functions within the bitcode library
Suggested in D65836
Reviewers: ABataev, jdoerfert, grokos, gregrodgers
Subscribers: openmp-commits
Tags: #openmp
Differential Revision: https://reviews.llvm.org/D65876
llvm-svn: 368177
| -rw-r--r-- | openmp/libomptarget/deviceRTLs/nvptx/src/option.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/openmp/libomptarget/deviceRTLs/nvptx/src/option.h b/openmp/libomptarget/deviceRTLs/nvptx/src/option.h index b3661d560f9..0b04fdf4f48 100644 --- a/openmp/libomptarget/deviceRTLs/nvptx/src/option.h +++ b/openmp/libomptarget/deviceRTLs/nvptx/src/option.h @@ -55,7 +55,7 @@ //////////////////////////////////////////////////////////////////////////////// #define EXTERN extern "C" __device__ -#define INLINE __inline__ __device__ +#define INLINE __forceinline__ __device__ #define NOINLINE __noinline__ __device__ #ifndef TRUE #define TRUE 1 |

