From c8b3b895487a95f30a34d64615012e9775d04e55 Mon Sep 17 00:00:00 2001 From: Aaron Teo Date: Sat, 21 Jun 2025 20:17:21 +0800 Subject: [PATCH] ggml-cpu: add compiler error macro Signed-off-by: Aaron Teo --- ggml/src/ggml-cpu/arch/s390/typedef.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/ggml/src/ggml-cpu/arch/s390/typedef.h b/ggml/src/ggml-cpu/arch/s390/typedef.h index 7b1dace2b..e8aaedd3e 100644 --- a/ggml/src/ggml-cpu/arch/s390/typedef.h +++ b/ggml/src/ggml-cpu/arch/s390/typedef.h @@ -146,6 +146,8 @@ inline static int32x4_t ggml_vec_dot(int32x4_t acc, int8x16_t a, int8x16_t b) { return acc + (vec_unpackh(p) + vec_unpackl(p)); } +#else +#error "This file requires s390x architecture with vector support (__s390x__ && __VEC__)" #endif // __s390x__ && __VEC__ #ifdef __cplusplus