diff --git a/include/ck/utility/type_convert.hpp b/include/ck/utility/type_convert.hpp index b3e399609e..161c4d37c3 100644 --- a/include/ck/utility/type_convert.hpp +++ b/include/ck/utility/type_convert.hpp @@ -1242,7 +1242,7 @@ inline __host__ __device__ float2_t type_convert(pk_i4_t x) #ifdef CK_USE_PK4_LAYOUT_SHUFFLE float2_t res = {x_h, x_l}; -#elif +#else float2_t res = {x_l, x_h}; #endif return res; diff --git a/include/ck_tile/core/numeric/pk_int4.hpp b/include/ck_tile/core/numeric/pk_int4.hpp index 13a43f8b5c..d5df4d1917 100644 --- a/include/ck_tile/core/numeric/pk_int4.hpp +++ b/include/ck_tile/core/numeric/pk_int4.hpp @@ -111,7 +111,7 @@ CK_TILE_HOST_DEVICE fp32x2_t pk_int4_t_to_fp32x2_t(const pk_int4_t& x) #ifdef CK_TILE_USE_PK4_LAYOUT_SHUFFLE fp32x2_t res = {x_h, x_l}; -#elif +#else fp32x2_t res = {x_l, x_h}; #endif return res; @@ -129,7 +129,7 @@ CK_TILE_HOST_DEVICE fp32x2_t pk_int4_t_to_fp32x2_t_signed_conversion(const pk_in #ifdef CK_TILE_USE_PK4_LAYOUT_SHUFFLE fp32x2_t res = {x_h, x_l}; -#elif +#else fp32x2_t res = {x_l, x_h}; #endif return res; @@ -140,7 +140,7 @@ CK_TILE_HOST_DEVICE fp16x2_t pk_int4_t_to_halfx2_t(const pk_int4_t& x) uint8_t x_u8 = ck_tile::bit_cast(x); #ifdef CK_TILE_USE_PK4_LAYOUT_SHUFFLE uint32_t i4s = ((x_u8 & 0x0f) << 16) | ((x_u8 & 0xf0) >> 4); -#elif +#else uint32_t i4s = ((x_u8 & 0xf0) << 12) | (x_u8 & 0xf); #endif const int EX = 0x64006400; @@ -160,7 +160,7 @@ CK_TILE_HOST_DEVICE bf16x2_t pk_int4_t_to_bfloat16x2_t(const pk_int4_t& x) #ifdef CK_TILE_USE_PK4_LAYOUT_SHUFFLE bf16x2_t res = {type_convert(x_h), type_convert(x_l)}; -#elif +#else bf16x2_t res = {type_convert(x_l), type_convert(x_h)}; #endif return res;