diff --git a/.github/workflows/ruvector-postgres-ci.yml b/.github/workflows/ruvector-postgres-ci.yml index 8d8271ea1..25e6efa7a 100644 --- a/.github/workflows/ruvector-postgres-ci.yml +++ b/.github/workflows/ruvector-postgres-ci.yml @@ -229,6 +229,10 @@ jobs: run: cargo build --features pg17,index-all,quant-all,graph-complete --release working-directory: crates/ruvector-postgres + - name: Build with AVX-512 feature (compile-check on stable Rust) + run: cargo build --features pg17,simd-avx512 --release + working-directory: crates/ruvector-postgres + - name: Test with all features run: cargo pgrx test pg17 --features index-all,quant-all,graph-complete working-directory: crates/ruvector-postgres diff --git a/crates/ruvector-postgres/src/distance/simd.rs b/crates/ruvector-postgres/src/distance/simd.rs index 55276e538..b44fc6de6 100644 --- a/crates/ruvector-postgres/src/distance/simd.rs +++ b/crates/ruvector-postgres/src/distance/simd.rs @@ -22,9 +22,8 @@ use simsimd::SpatialSimilarity; // SIMD Feature Detection // ============================================================================ -/// Check if AVX-512F is available at runtime -/// Note: AVX-512 intrinsics require nightly Rust, so this returns false on stable builds -/// To enable AVX-512, compile with --features simd-avx512 on nightly Rust +/// Check if AVX-512F is available at runtime. +/// Requires compiling with `--features simd-avx512` (stable Rust 1.72+). #[cfg(target_arch = "x86_64")] #[inline] pub fn is_avx512_available() -> bool {