summaryrefslogtreecommitdiff
path: root/candle-core/src/quantized/k_quants.rs
diff options
context:
space:
mode:
Diffstat (limited to 'candle-core/src/quantized/k_quants.rs')
-rw-r--r--candle-core/src/quantized/k_quants.rs9
1 files changed, 9 insertions, 0 deletions
diff --git a/candle-core/src/quantized/k_quants.rs b/candle-core/src/quantized/k_quants.rs
index e7404529..65fd6a6e 100644
--- a/candle-core/src/quantized/k_quants.rs
+++ b/candle-core/src/quantized/k_quants.rs
@@ -676,6 +676,9 @@ impl GgmlType for BlockQ2K {
#[cfg(target_feature = "avx")]
return super::avx::vec_dot_q2k_q8k(n, xs, ys);
+ #[cfg(target_feature = "neon")]
+ return super::neon::vec_dot_q2k_q8k(n, xs, ys);
+
if n % QK_K != 0 {
crate::bail!("vec_dot_q2k_q8k: {n} is not divisible by {QK_K}")
}
@@ -843,6 +846,9 @@ impl GgmlType for BlockQ3K {
#[cfg(target_feature = "avx")]
return super::avx::vec_dot_q3k_q8k(n, xs, ys);
+ #[cfg(target_feature = "neon")]
+ return super::neon::vec_dot_q3k_q8k(n, xs, ys);
+
if n % QK_K != 0 {
crate::bail!("vec_dot_q3k_q8k: {n} is not divisible by {QK_K}")
}
@@ -1301,6 +1307,9 @@ impl GgmlType for BlockQ5K {
#[cfg(target_feature = "avx")]
return super::avx::vec_dot_q5k_q8k(n, xs, ys);
+ #[cfg(target_feature = "neon")]
+ return super::neon::vec_dot_q5k_q8k(n, xs, ys);
+
if n % QK_K != 0 {
crate::bail!("vec_dot_q5k_q8k: {n} is not divisible by {QK_K}")
}