Skip to content

Commit

Permalink
Use forceinline. Necessary for nvcc to inline small functions within …
Browse files Browse the repository at this point in the history
…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
  • Loading branch information
JonChesterfield committed Aug 7, 2019
1 parent 7d4ab77 commit ae0178b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion openmp/libomptarget/deviceRTLs/nvptx/src/option.h
Expand Up @@ -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
Expand Down

0 comments on commit ae0178b

Please sign in to comment.