From 52ee1dc88a6e28f391a19133db763d64e6578925 Mon Sep 17 00:00:00 2001 From: Yicheng Kang <3193997905@qq.com> Date: Sun, 25 Oct 2026 11:12:45 -0700 Subject: [PATCH] RISC-V: use the RVV DSDOT kernel for RISCV64_ZVL256B RISCV64_ZVL256B built DSDOT from the scalar ../generic/dot.c. Use dot_rvv.c (compiled with -DDSDOT, as RISCV64_ZVL128B already does): on the SpacemiT X100 it is 4.9x faster at n = 1024, 3.4x at n = 32768 and 13% faster at n = 4M. --- kernel/riscv64/KERNEL.RISCV64_ZVL256B | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/kernel/riscv64/KERNEL.RISCV64_ZVL256B b/kernel/riscv64/KERNEL.RISCV64_ZVL256B index c96fac6fa3..b05faddd52 100644 --- a/kernel/riscv64/KERNEL.RISCV64_ZVL256B +++ b/kernel/riscv64/KERNEL.RISCV64_ZVL256B @@ -54,7 +54,7 @@ SDOTKERNEL = dot_vector.c DDOTKERNEL = dot_vector.c CDOTKERNEL = zdot_vector.c ZDOTKERNEL = zdot_vector.c -DSDOTKERNEL = ../generic/dot.c +DSDOTKERNEL = dot_rvv.c SNRM2KERNEL = nrm2_vector.c DNRM2KERNEL = nrm2_vector.c