mxf6_utils.hpp File Reference

mxf6_utils.hpp File Reference#

Composable Kernel: mxf6_utils.hpp File Reference
mxf6_utils.hpp File Reference

Go to the source code of this file.

Namespaces

namespace  ck
namespace  ck::utils

Functions

template<>
__host__ __device__ bool ck::utils::is_nan< f6_t > (e8m0_bexp_t const scale, f6_t const dataBytes)
 Checks if an f6_t value is NaN based on the provided scale.
template<>
__host__ __device__ bool ck::utils::is_nan< bf6_t > (e8m0_bexp_t const scale, bf6_t const dataBytes)
 Checks if an bf6_t value is NaN based on the provided scale.
template<>
__host__ __device__ bool ck::utils::is_inf< f6_t > (e8m0_bexp_t const scale, f6_t const data)
 Checks if an f6_t value is infinite.
template<>
__host__ __device__ bool ck::utils::is_inf< bf6_t > (e8m0_bexp_t const scale, bf6_t const data)
 Checks if an bf6_t value is infinite.
template<>
__host__ __device__ bool ck::utils::is_zero< f6_t > (e8m0_bexp_t const scale, f6_t const data)
 Checks whether an f6_t value is zero.
template<>
__host__ __device__ bool ck::utils::is_zero< bf6_t > (e8m0_bexp_t const scale, bf6_t const data)
 Checks whether an bf6_t value is zero.
template<>
__host__ __device__ float ck::utils::to_float< f6_t > (e8m0_bexp_t const scale, f6_t const data)
 Converts an f6_t value to a float based on an e8m0_bexp_t scale factor.
template<>
__host__ __device__ float ck::utils::to_float< bf6_t > (e8m0_bexp_t const scale, bf6_t const data)
 Converts an bf6_t value to a float based on an e8m0_bexp_t scale factor.
template<>
__host__ __device__ f6_t ck::utils::sat_convert_to_type< f6_t > (float value)
 Converts a float to f6_t with saturation.
template<>
__host__ __device__ bf6_t ck::utils::sat_convert_to_type< bf6_t > (float value)
 Converts a float to bf6_t with saturation.
template<>
__host__ __device__ f6_t ck::utils::sat_convert_to_type_sr< f6_t > (float value, uint32_t seed)
 Converts a float to f6_t with saturation and stochastic rounding.
template<>
__host__ __device__ bf6_t ck::utils::sat_convert_to_type_sr< bf6_t > (float value, uint32_t seed)
 Converts a float to f6_t with saturation and stochastic rounding.