Skip to content

Commit 19efef2

Browse files
committed
fix implementation
1 parent 874f196 commit 19efef2

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/VecSim/spaces/IP/IP_SVE_FP16.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -50,8 +50,8 @@ float FP16_InnerProduct_SVE(const void *pVect1v, const void *pVect2v, size_t dim
5050
svbool_t pg = svwhilelt_b16(offset, dimension);
5151

5252
// Load half-precision vectors.
53-
svfloat16_t v1 = svld1_f16(pg, vec1 + i);
54-
svfloat16_t v2 = svld1_f16(pg, vec2 + i);
53+
svfloat16_t v1 = svld1_f16(pg, vec1 + offset);
54+
svfloat16_t v2 = svld1_f16(pg, vec2 + offset);
5555
// Compute multiplications and add to the accumulator.
5656
// use the existing value of `acc` for the inactive elements (by the `m` suffix)
5757
acc = svmla_f16_m(pg, acc, v1, v2);

0 commit comments

Comments
 (0)