Skip to content

Commit c8b3b89

Browse files
committed
ggml-cpu: add compiler error macro
Signed-off-by: Aaron Teo <[email protected]>
1 parent 04a395e commit c8b3b89

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

ggml/src/ggml-cpu/arch/s390/typedef.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -146,6 +146,8 @@ inline static int32x4_t ggml_vec_dot(int32x4_t acc, int8x16_t a, int8x16_t b) {
146146
return acc + (vec_unpackh(p) + vec_unpackl(p));
147147
}
148148

149+
#else
150+
#error "This file requires s390x architecture with vector support (__s390x__ && __VEC__)"
149151
#endif // __s390x__ && __VEC__
150152

151153
#ifdef __cplusplus

0 commit comments

Comments
 (0)