Skip to content

Commit

Permalink
fix: relax avx512 incompatibility detection
Browse files Browse the repository at this point in the history
  • Loading branch information
ogabrielides committed Nov 26, 2024
1 parent 3e304a7 commit 80ea015
Showing 1 changed file with 0 additions and 12 deletions.
12 changes: 0 additions & 12 deletions src/cpu_compatibility.rs
Original file line number Diff line number Diff line change
Expand Up @@ -34,18 +34,6 @@ pub fn check_cpu_compatibility() {
.unwrap();
std::process::exit(1);
}
let avx512_supported = cpuid
.get_extended_feature_info()
.map_or(false, |ext_info| ext_info.has_avx512f()); // AVX-512 Foundation
if !avx512_supported {
MessageDialog::new()
.set_type(native_dialog::MessageType::Error)
.set_title("Compatibility Error")
.set_text("Your CPU does not support AVX512 instructions. Please use a compatible CPU.")
.show_alert()
.unwrap();
std::process::exit(1);
}
} else {
MessageDialog::new()
.set_type(native_dialog::MessageType::Error)
Expand Down

0 comments on commit 80ea015

Please sign in to comment.