Update packed fp4 layout (#2523)

[ROCm/composable_kernel commit: c9886109b4]
This commit is contained in:
Rostyslav Geyyer
2025-07-21 16:58:59 -05:00
committed by GitHub
parent d5fcf10b29
commit 3a1ea22cce
4 changed files with 20 additions and 36 deletions

View File

@@ -212,8 +212,8 @@ TEST(MXFP4, HostScaledConvert)
auto i = 256 * 16;
// f4x2 -> f32x2
EXPECT_EQ(out[i++], 1.0f);
EXPECT_EQ(out[i++], -4.0f);
EXPECT_EQ(out[i++], 1.0f);
// f32x2 -> f4x2
// RNE
@@ -296,8 +296,8 @@ TEST(MXFP4, DeviceScaledConvert)
auto i = 256 * 16;
// f4x2 -> f32x2
EXPECT_EQ(out[i++], 1.0f);
EXPECT_EQ(out[i++], -4.0f);
EXPECT_EQ(out[i++], 1.0f);
// f32x2 -> f4x2
// RNE