From e8087c5d60c14e4141c5699f8230a145ce6e7109 Mon Sep 17 00:00:00 2001 From: Julia Longtin Date: Sat, 11 May 2024 11:11:15 +0000 Subject: [PATCH] subtract the correct amount. --- ggml-phi-knc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ggml-phi-knc.c b/ggml-phi-knc.c index 9b53d876d..e9b5352b3 100644 --- a/ggml-phi-knc.c +++ b/ggml-phi-knc.c @@ -62,7 +62,7 @@ inline static void GGML_F32x16_VEC_FMA(const float32x16_t *mvec1, const float32x "cmp\t$4,\t%%r8\n\t" // Compare iterations to four. "jnae\t6f\n\t" // If there are not four iterations left, jump to label 6. "1:\n\t" - "sub\t$3,\t%%r8\n\t" // Decrement iterations + "sub\t$4,\t%%r8\n\t" // Decrement iterations "vmovaps\t\t(%%r10),\t%%zmm1\n\t" // Load two vectors. "vmovaps\t\t(%%r12),\t%%zmm2\n\t" "vprefetchnta\t192(%%r10)\n\t" // prefetch the next float32x16_t block (192 bytes ahead)