Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 6 additions & 4 deletions GPU/Common/GPUCommonDefAPI.h
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@
#define GPUdDefault()
#define GPUhdDefault()
#define GPUdi() inline
#define GPUdii() __attribute__((always_inline)) inline
#define GPUdii() GPUdi() GPUAlwaysInline()
#define GPUdni()
#define GPUdnii()
#define GPUh() INVALID_TRIGGER_ERROR_NO_HOST_CODE
Expand Down Expand Up @@ -149,7 +149,7 @@
#define GPUd()
#define GPUhdDefault()
#define GPUdi() inline
#define GPUdii() inline
#define GPUdii() GPUdi() GPUAlwaysInline()
#define GPUdni()
#define GPUdnii()
#define GPUh() inline
Expand Down Expand Up @@ -179,7 +179,7 @@
#define GPUdDefault() __device__
#define GPUhdDefault() __host__ __device__
#define GPUdi() __device__ inline
#define GPUdii() __device__ __forceinline__
#define GPUdii() GPUdi() GPUAlwaysInline()
#define GPUdni() __device__ __attribute__((noinline))
#define GPUdnii() __device__ __attribute__((noinline))
#define GPUh() __host__ inline
Expand Down Expand Up @@ -214,7 +214,7 @@
#define GPUdDefault()
#define GPUhdDefault()
#define GPUdi() __device__ inline
#define GPUdii() __device__ inline
#define GPUdii() GPUdi() GPUAlwaysInline()
#define GPUdni() __device__ __attribute__((noinline))
#define GPUdnii() __device__ __attribute__((noinline))
#define GPUh() __host__ inline
Expand All @@ -234,6 +234,8 @@
#define GPUAtomic(type) type
#endif

#define GPUAlwaysInline() __attribute__((always_inline)) // Forced inlining on host and device

#ifndef GPUdic // Takes different parameter for inlining: 0 = never, 1 = always, 2 = compiler-decision
#define GPUdic(...) GPUd()
#endif
Expand Down
Loading