Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

core:sys/info AVX-512 CPU Features #4376

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

Barinzaya
Copy link

Adds AVX-512 feature detection to core:sys/info.

Per a discussion in #package-dev in the Discord server, this adds each individual feature flag of AVX-512 (18 total) as individual entries in CPU_Feature, for a current total of 36 CPU_Feature values.

XCR0 bits to check were sourced from the Intel Software Developer Manual, volume 1, section 15.2.

CPUID feature flag bits were sourced from the Intel Instruction Set Extensions document, section 1.4, table 1-3.

Note that there is an apparently an issue where this detection may report a false negative on Darwin systems; see a GitHub issue on the Go compiler. This issue is not addressed by these changes.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant