diff --git a/include/ck/utility/data_type.hpp b/include/ck/utility/data_type.hpp index 86bc3c394e..4d2b502b57 100644 --- a/include/ck/utility/data_type.hpp +++ b/include/ck/utility/data_type.hpp @@ -19,6 +19,8 @@ struct pk_i4_t type data; __host__ __device__ constexpr pk_i4_t() : data{type{}} {} __host__ __device__ constexpr pk_i4_t(type init) : data{init} {} + + __host__ __device__ constexpr operator float() const { return static_cast(data); } }; inline constexpr auto next_pow2(uint32_t x) diff --git a/profiler/src/profile_gemm_b_scale.cpp b/profiler/src/profile_gemm_b_scale.cpp index 1992dadeb9..4c77dad380 100644 --- a/profiler/src/profile_gemm_b_scale.cpp +++ b/profiler/src/profile_gemm_b_scale.cpp @@ -105,8 +105,6 @@ int profile_gemm_b_scale(int argc, char* argv[]) using F32 = float; using F16 = ck::half_t; - using BF16 = ck::bhalf_t; - using F8 = ck::f8_t; using I4 = ck::pk_i4_t; using Row = ck::tensor_layout::gemm::RowMajor;