Noticed this while working on Nix packaging
As of glibc 2.42 (?? apparently), rsqrt/rsqrtf are declared in <bits/mathcalls.h> (include'd by both <math.h> and <cmath>)
SCALE's redscale_impl/builtins.h unconditionally includes and declares its own rsqrt(double), the two now conflict:
error: __host__ function 'rsqrt' cannot overload __host__ __device__ function 'rsqrt'
I had to comment those defs out from redscale_impl/builtins.h for the build to proceed:
__host__ __DEVICE float rsqrt(float);
__host__ __DEVICE double rsqrt(double);
__host__ __DEVICE float rsqrtf(float);
Noticed this while working on Nix packaging
As of glibc 2.42 (?? apparently),
rsqrt/rsqrtfare declared in<bits/mathcalls.h>(include'd by both<math.h>and<cmath>)SCALE's
redscale_impl/builtins.hunconditionally includes and declares its ownrsqrt(double), the two now conflict:I had to comment those defs out from
redscale_impl/builtins.hfor the build to proceed: