Skip to content

Commit

Permalink
Fix matmul example in the docs.
Browse files Browse the repository at this point in the history
  • Loading branch information
hahaxxz authored and kito-cheng committed Sep 5, 2024
1 parent 21d7e5b commit e648d05
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion doc/rvv-intrinsic-examples.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ void matmul_rvv(double *a, double *b, double *c, int n, int m, int p) {
// Set accumulator to zero.
vfloat64m1_t vec_s = __riscv_vfmv_v_f_f64m1(0.0, vlmax);
vfloat64m1_t vec_zero = __riscv_vfmv_v_f_f64m1(0.0, vlmax);
for (size_t vl; k > 0; k -= vl) {
for (size_t vl; k > 0; k -= vl, ptr_a += vl, ptr_b += vl * m) {
vl = __riscv_vsetvl_e64m1(k);
// Load row a[i][k..k+vl)
Expand Down

0 comments on commit e648d05

Please sign in to comment.