From bec4968e480fa254f5382d09aa768e17bea48117 Mon Sep 17 00:00:00 2001 From: Rostyslav Geyyer Date: Thu, 13 Feb 2025 23:08:19 +0000 Subject: [PATCH] Permute elements in a vector --- include/ck/utility/type_convert.hpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/include/ck/utility/type_convert.hpp b/include/ck/utility/type_convert.hpp index 552b211821..9c6df8d76b 100644 --- a/include/ck/utility/type_convert.hpp +++ b/include/ck/utility/type_convert.hpp @@ -962,7 +962,8 @@ inline __host__ __device__ f4x2_t f4_convert_sr(float2_t x, float scale = 1.0f) f4x2_t f4x2_array[4]; } value{0}; printf("%f, %f\n", x[0], x[1]); - value.bitwise = __builtin_amdgcn_cvt_scalef32_sr_pk_fp4_f32(value.bitwise, x, rng, scale, 0); + value.bitwise = __builtin_amdgcn_cvt_scalef32_sr_pk_fp4_f32( + value.bitwise, float2_t{x[1], x[0]}, rng, scale, 0); return value.f4x2_array[0]; #else union