No need for the even constraint on vecdot-q40-q80. (#1202)

This commit is contained in:
Laurent Mazare
2023-10-28 08:23:59 +02:00
committed by GitHub
parent c8face3f95
commit ef33df7ae2
4 changed files with 2 additions and 41 deletions

View File

@ -11,10 +11,6 @@ pub(crate) fn vec_dot_q4_0_q8_0(n: usize, xs: &[BlockQ4_0], ys: &[BlockQ8_0]) ->
if n % QK8_0 != 0 {
crate::bail!("vec_dot_q4_0_q8_0: {n} is not divisible by {qk}")
}
let nb = n / QK8_0;
if nb % 2 != 0 {
crate::bail!("vec_dot_q4_0_q8_0: {nb} is not even")
}
unsafe {
let mut acc = f32x4_splat(0.0f32);
for (x, y) in xs.iter().zip(ys.iter()) {