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
5 changes: 5 additions & 0 deletions GPU/Common/GPUCommonMath.h
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,12 @@ class GPUCommonMath
GPUhdi() static float Remainderf(float x, float y);
GPUd() constexpr static bool Finite(float x);
GPUd() constexpr static bool IsNaN(float x);
#pragma GCC diagnostic push
#if defined(__FAST_MATH__) && defined(__clang__)
#pragma GCC diagnostic ignored "-Wnan-infinity-disabled"
#endif
GPUd() constexpr static float QuietNaN() { return GPUCA_CHOICE(std::numeric_limits<float>::quiet_NaN(), __builtin_nanf(""), nan(0u)); }
#pragma GCC diagnostic pop
GPUd() constexpr static uint32_t Clz(uint32_t val);
GPUd() constexpr static uint32_t Popcount(uint32_t val);

Expand Down
5 changes: 5 additions & 0 deletions GPU/GPUTracking/Definitions/GPULogging.h
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,12 @@
#define GPUFatal(...)
#elif defined(GPUCA_STANDALONE) && !defined(GPUCA_GPUCODE_DEVICE) && !defined(GPUCA_NO_FMT)
#include <cstdio>
#pragma GCC diagnostic push
#if defined(__FAST_MATH__) && defined(__clang__)
#pragma GCC diagnostic ignored "-Wnan-infinity-disabled"
#endif
#include <fmt/printf.h>
#pragma GCC diagnostic pop
#define GPUInfo(string, ...) \
{ \
fmt::printf(string "\n", ##__VA_ARGS__); \
Expand Down