From 968a589a3fcf8885d266df1fbbcfd2509e65ff84 Mon Sep 17 00:00:00 2001 From: Mathieu Poumeyrol Date: Wed, 29 Nov 2023 17:46:43 +0100 Subject: [PATCH] force avx2 < fma < avx512f --- linalg/src/x86_64_fma.rs | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/linalg/src/x86_64_fma.rs b/linalg/src/x86_64_fma.rs index fc1f5d05d1..12664bdcca 100644 --- a/linalg/src/x86_64_fma.rs +++ b/linalg/src/x86_64_fma.rs @@ -112,12 +112,12 @@ fn plug_avx512f(ops: &mut Ops) { pub fn plug(ops: &mut Ops) { if is_x86_feature_detected!("avx2") { - plug_avx2(ops) - } - if is_x86_feature_detected!("fma") { - plug_fma(ops); - } - if is_x86_feature_detected!("avx512f") { - plug_avx512f(ops); + plug_avx2(ops); + if is_x86_feature_detected!("fma") { + plug_fma(ops); + if is_x86_feature_detected!("avx512f") { + plug_avx512f(ops); + } + } } }