f8_utils.hpp File Reference

f8_utils.hpp File Reference#

Composable Kernel: f8_utils.hpp File Reference
f8_utils.hpp File Reference

Go to the source code of this file.

Namespaces

namespace  ck
namespace  ck::utils

Enumerations

enum class  ck::f8_rounding_mode {
  ck::standard ,
  ck::stochastic
}

Functions

__host__ int ck::clz (uint32_t x)
template<typename X, typename Y, bool negative_zero_nan, bool clip, bool stoch>
__host__ __device__ Y ck::utils::cast_to_f8 (X x, uint32_t rng)
template<typename X, typename Y, bool negative_zero_nan>
__host__ __device__ Y ck::utils::cast_from_f8 (X x)