From 70596134045d47dbd93aacf32e6b9bebc461c113 Mon Sep 17 00:00:00 2001 From: yadaish Date: Thu, 4 Dec 2025 10:38:45 +0000 Subject: [PATCH] update --- include/ck_tile/core/numeric/pk_int4.hpp | 8 -------- 1 file changed, 8 deletions(-) diff --git a/include/ck_tile/core/numeric/pk_int4.hpp b/include/ck_tile/core/numeric/pk_int4.hpp index d72647395a..088407b40c 100644 --- a/include/ck_tile/core/numeric/pk_int4.hpp +++ b/include/ck_tile/core/numeric/pk_int4.hpp @@ -109,14 +109,11 @@ CK_TILE_HOST_DEVICE fp32x2_t pk_int4_t_to_fp32x2_t(const pk_int4_t& x) float x_l = ((x_u8 & 0x0f) >> 0) - 8.f; float x_h = ((x_u8 & 0xf0) >> 4) - 8.f; - /* #ifdef CK_TILE_USE_PK4_LAYOUT_SHUFFLE fp32x2_t res = {x_h, x_l}; #elif fp32x2_t res = {x_l, x_h}; #endif - */ - fp32x2_t res = {x_l, x_h}; return res; } @@ -130,14 +127,11 @@ CK_TILE_HOST_DEVICE fp32x2_t pk_int4_t_to_fp32x2_t_signed_conversion(const pk_in x_l = x_l > 7 ? x_l - 16 : x_l; x_h = x_h > 7 ? x_h - 16 : x_h; - /* #ifdef CK_TILE_USE_PK4_LAYOUT_SHUFFLE fp32x2_t res = {x_h, x_l}; #elif fp32x2_t res = {x_l, x_h}; #endif - */ - fp32x2_t res = {x_l, x_h}; return res; } @@ -161,8 +155,6 @@ CK_TILE_HOST_DEVICE fp16x2_t pk_int4_t_to_halfx2_t(const pk_int4_t& x) CK_TILE_HOST_DEVICE fp16x2_t pk_int4_t_to_halfx2_t(const pk_int4_t& x, float scale) { - // TODO(yadai): confirm quanzation algorithm - // auto float_vec2 = pk_int4_t_to_fp32x2_t_signed_conversion(x); auto float_vec2 = pk_int4_t_to_fp32x2_t(x); float_vec2.x = float_vec2.x * scale; float_vec2.y = float_vec2.y * scale;