[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Packaging composable_kernel



Re,

Le 04/03/2025 à 08:20, Petter Reinholdtsen a écrit :
I suspect you are building with -Werror, causing a warning about an
ununsed function to become an error.

What about adding #if 0 / #endif around the unused function to avoid the
warning?

Was thinking about that, but

template <typename X, typename Y, bool negative_zero_nan>
__host__ __device__ Y run_cast_from_f8(X x)    <----
{
    // fp8/bf8 exponent/mantissa layout
    constexpr int in_exp  = NumericUtils<X>::exp;
    constexpr int in_mant = NumericUtils<X>::mant;
...

is completly cryptic for me, not extremely familiar with c++ template, neither __device__ stuffs
A small explanation or a documentation link, would be great
how to fix this properly ?

Christian




Reply to: