Skip to content
Merged
Show file tree
Hide file tree
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
4 changes: 2 additions & 2 deletions GPU/GPUTracking/Definitions/GPUGetConstexpr.h
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@

// This is a temporary workaround required for clang (with c++20), until we can go to C++23 with P2280R4, which allows getting constexpr static values from references

#if (defined(__clang__) && __cplusplus >= 202002L && __cplusplus < 202302L) || defined(__CPUDEVICE__) // BUG: The workaround is needed for GCC if used inside a templated function.
#if defined(GPUCA_GPUCODE_GENRTC) && __cplusplus >= 202002L && __cplusplus < 202302L

namespace o2::gpu::internal
{
Expand Down Expand Up @@ -60,7 +60,7 @@ GPUdi() constexpr auto getConstexpr(const auto v, const auto w)

} // namespace o2::gpu::internal

#else // __clang__
#else // GPUCA_GPUCODE_GENRTC

#define GPUCA_GET_CONSTEXPR(obj, val) (obj).val

Expand Down
Loading