Skip to content

Commit

Permalink
Disable icelake detection
Browse files Browse the repository at this point in the history
Due some miscommunication upstream disabled all the icelake flags in the
current stable release.

The issue is tracked in rust-lang/rust#71473
  • Loading branch information
lu-zero committed Apr 23, 2020
1 parent 0c5b38f commit defedbb
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions src/cpu_features/x86.rs
Original file line number Diff line number Diff line change
Expand Up @@ -44,14 +44,15 @@ impl Default for CpuFeatureLevel {
&& is_x86_feature_detected!("avx512vl")
}
fn avx512icl_detected() -> bool {
avx512_detected()
false
// avx512_detected()
// && is_x86_feature_detected!("avx512bitalg")
// && is_x86_feature_detected!("avx512clmulqdq")
&& is_x86_feature_detected!("avx512ifma")
// && is_x86_feature_detected!("avx512ifma")
// && is_x86_feature_detected!("avx512vaes")
&& is_x86_feature_detected!("avx512vbmi")
// && is_x86_feature_detected!("avx512vbmi")
// && is_x86_feature_detected!("avx512vbmi2")
&& is_x86_feature_detected!("avx512vpopcntdq")
// && is_x86_feature_detected!("avx512vpopcntdq")
}

let detected: CpuFeatureLevel = if avx512icl_detected() {
Expand Down

0 comments on commit defedbb

Please sign in to comment.