From 63407dbe5b4452cfb6186e13a6f55203ea9e6478 Mon Sep 17 00:00:00 2001 From: Ivan Smirnov Date: Sat, 24 Dec 2022 14:29:31 +0200 Subject: [PATCH] Bump multiversion to 0.7 --- Cargo.toml | 2 +- src/compute/aggregate/sum.rs | 6 ++---- src/compute/hash.rs | 9 +++------ 3 files changed, 6 insertions(+), 11 deletions(-) diff --git a/Cargo.toml b/Cargo.toml index 29e0a090348..5cedc045efc 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -92,7 +92,7 @@ serde_json = { version = "^1.0", features = ["preserve_order"], optional = true strength_reduce = { version = "0.2", optional = true } # For instruction multiversioning -multiversion = { version = "0.6.1", optional = true } +multiversion = { version = "0.7", optional = true } # For support for odbc odbc-api = { version = "0.36", optional = true } diff --git a/src/compute/aggregate/sum.rs b/src/compute/aggregate/sum.rs index 85336ddc292..63e866994cf 100644 --- a/src/compute/aggregate/sum.rs +++ b/src/compute/aggregate/sum.rs @@ -20,8 +20,7 @@ pub trait Sum { fn simd_sum(self) -> T; } -#[multiversion] -#[clone(target = "x86_64+avx")] +#[multiversion(targets("x86_64+avx"))] fn nonnull_sum(values: &[T]) -> T where T: NativeType + Simd + Add + std::iter::Sum, @@ -39,8 +38,7 @@ where /// # Panics /// iff `values.len() != bitmap.len()` or the operation overflows. -#[multiversion] -#[clone(target = "x86_64+avx")] +#[multiversion(targets("x86_64+avx"))] fn null_sum_impl(values: &[T], mut validity_masks: I) -> T where T: NativeType + Simd, diff --git a/src/compute/hash.rs b/src/compute/hash.rs index d5f8370d8b4..bce4460524f 100644 --- a/src/compute/hash.rs +++ b/src/compute/hash.rs @@ -21,8 +21,7 @@ use crate::{ use super::arity::unary; -#[multiversion] -#[clone(target = "x86_64+aes+sse3+ssse3+avx+avx2")] +#[multiversion(targets("x86_64+aes+sse3+ssse3+avx+avx2"))] /// Element-wise hash of a [`PrimitiveArray`]. Validity is preserved. pub fn hash_primitive(array: &PrimitiveArray) -> PrimitiveArray { let state = new_state!(); @@ -30,8 +29,7 @@ pub fn hash_primitive(array: &PrimitiveArray) -> Primit unary(array, |x| state.hash_one(x), DataType::UInt64) } -#[multiversion] -#[clone(target = "x86_64+aes+sse3+ssse3+avx+avx2")] +#[multiversion(targets("x86_64+aes+sse3+ssse3+avx+avx2"))] /// Element-wise hash of a [`BooleanArray`]. Validity is preserved. pub fn hash_boolean(array: &BooleanArray) -> PrimitiveArray { let state = new_state!(); @@ -45,8 +43,7 @@ pub fn hash_boolean(array: &BooleanArray) -> PrimitiveArray { PrimitiveArray::::new(DataType::UInt64, values, array.validity().cloned()) } -#[multiversion] -#[clone(target = "x86_64+aes+sse3+ssse3+avx+avx2")] +#[multiversion(targets("x86_64+aes+sse3+ssse3+avx+avx2"))] /// Element-wise hash of a [`Utf8Array`]. Validity is preserved. pub fn hash_utf8(array: &Utf8Array) -> PrimitiveArray { let state = new_state!();