Skip to content

Commit

Permalink
force avx2 < fma < avx512f
Browse files Browse the repository at this point in the history
  • Loading branch information
kali committed Nov 29, 2023
1 parent ee98004 commit 968a589
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions linalg/src/x86_64_fma.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
}
}
}

0 comments on commit 968a589

Please sign in to comment.