Cycles: Fixed SYCL build with newer compilers

This commit is contained in:
Werner, Stefan
2023-06-05 11:49:17 +02:00
committed by Stefan Werner
parent 74772c6920
commit d7794f3540

View File

@@ -101,7 +101,6 @@ using std::isfinite;
using std::isnan;
using std::sqrt;
# else
using sycl::sqrt;
# define isfinite(x) sycl::isfinite((x))
# define isnan(x) sycl::isnan((x))
# endif
@@ -795,7 +794,10 @@ ccl_device float bits_to_01(uint bits)
#if !defined(__KERNEL_GPU__)
# if defined(__GNUC__)
# define popcount(x) __builtin_popcount(x)
ccl_device_inline uint popcount(uint x)
{
return __builtin_popcount(x);
}
# else
ccl_device_inline uint popcount(uint x)
{