AVX version of the q4k vecdot. (#651)

This commit is contained in:
Laurent Mazare
2023-08-29 09:41:17 +01:00
committed by GitHub
parent 33c23c19b6
commit 4b8d57ba15
2 changed files with 120 additions and 9 deletions

View File

@ -1104,6 +1104,9 @@ impl GgmlType for BlockQ4K {
#[allow(unreachable_code)]
fn vec_dot(n: usize, xs: &[Self], ys: &[Self::VecDotType]) -> Result<f32> {
#[cfg(target_feature = "avx")]
return super::avx::vec_dot_q4k_q8k(n, xs, ys);
#[cfg(target_feature = "neon")]
return super::neon::vec_dot_q4k_q8k(n, xs, ys);