Skip to content

Commit 6b4469b

Browse files
committed
ggml-cpu: fix wrong displacement
Signed-off-by: Aaron Teo <[email protected]>
1 parent dca6c74 commit 6b4469b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ggml/src/ggml-cpu/ggml-cpu.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3143,7 +3143,7 @@ void ggml_cpu_fp32_to_fp16(const float * x, ggml_fp16_t * y, int64_t n) {
31433143
float32x4_t v_x1 = vec_xl(i + 0, x);
31443144
float32x4_t v_x2 = vec_xl(i + 4, x);
31453145
uint16x8_t v_dlf16 = vec_round_from_fp32(v_x1, v_x2, 0);
3146-
vec_xst(v_dlf16, i, (uint16_t *)y);
3146+
vec_xst(v_dlf16, 0, (uint16_t *)(y + i));
31473147
}
31483148
// TODO: Enable bottom code once checks are done
31493149
// for (; i + 3 < n; i += 4) {

0 commit comments

Comments
 (0)