From a30192ed830101e6b8ea4b37bd1248ede19ee938 Mon Sep 17 00:00:00 2001 From: Luca Barbato Date: Thu, 23 Apr 2020 19:43:41 +0200 Subject: [PATCH] Disable icelake detection Due some miscommunication upstream disabled all the icelake flags in the current stable release. The issue is tracked in https://github.com/rust-lang/rust/issues/71473 --- src/cpu_features/x86.rs | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/src/cpu_features/x86.rs b/src/cpu_features/x86.rs index 50df4e84a7..c2319c5d6c 100644 --- a/src/cpu_features/x86.rs +++ b/src/cpu_features/x86.rs @@ -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() {