From 54930024ce24aed28610bbd33f42bcda561b75b2 Mon Sep 17 00:00:00 2001 From: "Alessandro de Oliveira Faria (A.K.A. CABELO)" Date: Tue, 20 Feb 2024 13:47:11 -0300 Subject: [PATCH] cabelo@opensuse.org - Build in openSUSE:compatible with gcc7 --- ggml-quants.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/ggml-quants.c b/ggml-quants.c index 1cc46785a..d32e41ece 100644 --- a/ggml-quants.c +++ b/ggml-quants.c @@ -52,11 +52,10 @@ #define UNUSED GGML_UNUSED #define MM256_SET_M128I(a, b) _mm256_insertf128_si256(_mm256_castsi128_si256(b), (a), 1) -#ifdef __GNUC__ -#if __GNUC__ < 8 + +#if defined(__GNUC__) && __GNUC__ < 8 && !defined(__clang__) #define _mm256_set_m128i(a, b) _mm256_permute2f128_si256(_mm256_castsi128_si256(a), _mm256_castsi128_si256(b), 2) #endif -#endif #if defined(__AVX__) || defined(__AVX2__) || defined(__AVX512F__) || defined(__SSSE3__) // multiply int8_t, add results pairwise twice