Skip to content

Commit

Permalink
Merge pull request #10 from seijikun/master
Browse files Browse the repository at this point in the history
Fix build for aarch64
  • Loading branch information
ralfbiedert authored Jun 22, 2024
2 parents 4f33f15 + 1eca5d8 commit ca9701d
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/svm/kernel/rbf.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
use std::convert::{From, TryFrom};
use std::arch;

use super::{KernelDense, KernelSparse};
use crate::{
Expand Down Expand Up @@ -66,7 +67,7 @@ fn compute(rbf: Rbf, vectors: &MatrixD<f32s, Rows>, feature: &VectorD<f32s>, out
#[cfg(target_arch = "aarch64")]
#[inline]
fn compute(rbf: Rbf, vectors: &MatrixD<f32s, Rows>, feature: &VectorD<f32s>, output: &mut [f64]) {
if is_aarch64_feature_detected!("neon") {
if arch::is_aarch64_feature_detected!("neon") {
unsafe { compute_neon(rbf, vectors, feature, output) }
} else {
compute_core(rbf, vectors, feature, output)
Expand Down

0 comments on commit ca9701d

Please sign in to comment.