Skip to content

Commit 78d550b

Browse files
authored
ggml-cpu/x86: fix unused changemask warning in repack (ggml-org#20692)
1 parent 4efd326 commit 78d550b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ggml/src/ggml-cpu/arch/x86/repack.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -531,7 +531,6 @@ static void gemv_q4_b32_8x8_q8_0_lut_avx(int n, float * GGML_RESTRICT s, size_t
531531

532532
UNUSED(bs);
533533

534-
__m128i changemask = _mm_set_epi8(15, 14, 7, 6, 13, 12, 5, 4, 11, 10, 3, 2, 9, 8, 1, 0);
535534
__m256i finalpermutemask = _mm256_set_epi32(7, 5, 3, 1, 6, 4, 2, 0);
536535

537536
// Permute mask used for easier vector processing at later stages
@@ -580,6 +579,7 @@ static void gemv_q4_b32_8x8_q8_0_lut_avx(int n, float * GGML_RESTRICT s, size_t
580579
if constexpr (
581580
std::is_same_v<block_tx8, block_q4_0x8> ||
582581
std::is_same_v<block_tx8, block_iq4_nlx8>) {
582+
const __m128i changemask = _mm_set_epi8(15, 14, 7, 6, 13, 12, 5, 4, 11, 10, 3, 2, 9, 8, 1, 0);
583583
col_scale_f32 = GGML_F32Cx8_REARRANGE_LOAD(b_ptr[b].d, changemask);
584584
} else if constexpr (std::is_same_v<block_tx8, block_mxfp4x8>) {
585585
// Load 8 E8M0 exponents and convert to float via LUT

0 commit comments

Comments
 (0)