From 4ae8ffa90c1c665ff5143e53652d06b7bfcc35ed Mon Sep 17 00:00:00 2001 From: Jai Radhakrishnan Date: Tue, 5 Aug 2025 11:11:24 -0700 Subject: [PATCH] [ENH] force avx512 in rust build --- Cargo.lock | 2 +- build.rs | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/Cargo.lock b/Cargo.lock index ecc83867..648b4f3d 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -101,7 +101,7 @@ dependencies = [ [[package]] name = "hnswlib" -version = "0.8.0" +version = "0.8.1" dependencies = [ "cc", "rand", diff --git a/build.rs b/build.rs index 04bbe7bf..acc7fe42 100644 --- a/build.rs +++ b/build.rs @@ -11,6 +11,7 @@ fn main() -> Result<(), Box> { .flag("-fPIC") .flag("-ftree-vectorize") .flag("-w") + .flag("-march=native") .compile("bindings"); Ok(())