Add AVX2 runtime checks (#10033) (#10035)

automerge
This commit is contained in:
mergify[bot]
2020-05-13 13:43:06 -07:00
committed by GitHub
parent 3474419111
commit ab9fe5e9ad

View File

@ -776,6 +776,15 @@ fn report_target_features() {
process::exit(1);
}
}
#[target_feature(enable = "avx2")]
{
if is_x86_feature_detected!("avx2") {
info!("AVX2 detected");
} else {
error!("Your machine does not have AVX2 support, please rebuild from source on your machine");
process::exit(1);
}
}
}
}