Skip to content

Commit 1ba9785

Browse files
committed
ggml : fix arch check in bf16_to_fp32
1 parent ea02c75 commit 1ba9785

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

ggml/src/ggml.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -392,6 +392,8 @@ void ggml_bf16_to_fp32_row(const ggml_bf16_t * x, float * y, int64_t n) {
392392
16)));
393393
}
394394
}
395+
#endif
396+
#if defined(__AVX2__)
395397
if (ggml_cpu_has_avx2()) {
396398
for (; i + 8 <= n; i += 8) {
397399
_mm256_storeu_ps(y + i,

0 commit comments

Comments
 (0)