Skip to content

Commit 45f0cc7

Browse files
committed
hack to fix compilation on avx2 intel macbook
1 parent 54dde5e commit 45f0cc7

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
@@ -737,7 +737,7 @@ void ggml_gemv_q4_K_8x8_q8_K(int n, float * GGML_RESTRICT s, size_t bs, const vo
737737
UNUSED(ncols_interleaved);
738738
UNUSED(blocklen);
739739

740-
#if defined(__AVX2__)
740+
#if defined(__AVX2__) && !defined(__APPLE__)
741741
// Lookup table to convert signed nibbles to signed bytes
742742
__m256i signextendlut = _mm256_castsi128_si256(_mm_set_epi8(-1, -2, -3, -4, -5, -6, -7, -8, 7, 6, 5, 4, 3, 2, 1, 0));
743743
signextendlut = _mm256_permute2f128_si256(signextendlut, signextendlut, 0);

0 commit comments

Comments
 (0)