We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Hi,
While packaging this for Debian, we have cpuid v2 in the repository and I needed to get it to compile with that version.
The patch for compatibility with cpuid v2 is simple:
--- a/cpu.go +++ b/cpu.go @@ -5,6 +5,6 @@ import "github.com/klauspost/cpuid" var ( - haveAVX2 = cpuid.CPU.AVX2() - haveAVX512 = cpuid.CPU.AVX512F() + haveAVX2 = cpuid.CPU.Supports(cpuid.AVX2) + haveAVX512 = cpuid.CPU.Supports(cpuid.AVX512F) )
Thanks!
The text was updated successfully, but these errors were encountered:
update cpuid to v2
e4ed553
fixes lukechampine#12
fixed in 09d3897
Sorry, something went wrong.
Successfully merging a pull request may close this issue.
Hi,
While packaging this for Debian, we have cpuid v2 in the repository and I needed to get it to compile with that version.
The patch for compatibility with cpuid v2 is simple:
Thanks!
The text was updated successfully, but these errors were encountered: