Skip to content
Discussion options

You must be logged in to vote

It is checked at runtime:

std::is_x86_feature_detected!("avx2")

The runtime check is only done when it isn't known whether avx2 is enabled at compile time. If it is enabled at compile time, then there's no reason to do the check at runtime.

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by BurntSushi
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants
Converted from issue

This discussion was converted from issue #176 on May 14, 2025 17:35.