go: x/sys/cpu: add support for detecting AVX-512

I would like to detect the availability of AVX-512 and its subsets (F, CD, VL, BW, DQ, IFMA, VBMI, …) using the golang.org/x/sys/cpu package. However, no such flags are available. Please add a way to detect the availability of AVX-512 and its specific sub features. If desired, I can try writing a patch for this myself.

About this issue

  • Original URL
  • State: closed
  • Created 4 years ago
  • Comments: 16 (11 by maintainers)

Most upvoted comments

Thank you for the patch! This’ll be very useful.

@clausecker so, I’ve implemented the patch, hopefully, it will be merged soon

@clausecker I’ll try this weekend

@clausecker ok, so I’ll work on this

@justplesh If you would like to do this I would be very happy. Gives me more time to spend writing my paper.