Skip to content

Commit 2ad4450

Browse files
committed
add riscv zba extension limit
Change-Id: I321eb200f859751727afe5cae13074dfce2bb0ce
1 parent 0f8d88f commit 2ad4450

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ggml/src/ggml-cpu/vec.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -460,7 +460,7 @@ ggml_float ggml_vec_soft_max_f32(const int n, float * y, const float * x, float
460460
vst1q_f32(y + i, val);
461461
sum += (ggml_float)vaddvq_f32(val);
462462
}
463-
#elif defined(__riscv) && defined(__riscv_v)
463+
#elif defined(__riscv) && defined(__riscv_v) && defined(__riscv_zba)
464464
int N = n;
465465
i += n;
466466
float* src = const_cast<float*>(reinterpret_cast<const float*>(x));

0 commit comments

Comments
 (0)