aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorslaren <2141330+slaren@users.noreply.github.com>2023-03-30 11:16:30 +0200
committerGitHub <noreply@github.com>2023-03-30 11:16:30 +0200
commited3c680bcd0e8ce6e574573ba95880b694449878 (patch)
treeeb0c1a3a73e1ffe2e59447dde95ef3504de08b83
parent9cbc404ba6699a9ba4925ea25a60552b13491c7a (diff)
Fix GGML_F32Cx8_STORE in AVX without F16C path (#619)
-rw-r--r--ggml.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/ggml.c b/ggml.c
index 02675ee..b7d79ab 100644
--- a/ggml.c
+++ b/ggml.c
@@ -1297,7 +1297,7 @@ static inline void __avx_f32cx8_store(ggml_fp16_t *x, __m256 y) {
_mm256_storeu_ps(arr, y);
for (int i = 0; i < 8; i++)
- x[i] = GGML_FP16_TO_FP32(arr[i]);
+ x[i] = GGML_FP32_TO_FP16(arr[i]);
}
#define GGML_F32Cx8_LOAD(x) __avx_f32cx8_load(x)
#define GGML_F32Cx8_STORE(x, y) __avx_f32cx8_store(x, y)