From ae0178bee72c201ba3b834adae6bffedec6ec04e Mon Sep 17 00:00:00 2001 From: Jon Chesterfield Date: Wed, 7 Aug 2019 15:24:12 +0000 Subject: [PATCH] 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 --- openmp/libomptarget/deviceRTLs/nvptx/src/option.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/openmp/libomptarget/deviceRTLs/nvptx/src/option.h b/openmp/libomptarget/deviceRTLs/nvptx/src/option.h index b3661d560f9f4..0b04fdf4f4888 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