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

AVX-512 detection? #98

Open
NAThompson opened this issue Apr 28, 2019 · 2 comments
Open

AVX-512 detection? #98

NAThompson opened this issue Apr 28, 2019 · 2 comments

Comments

@NAThompson
Copy link

The file

boost/predef/hardware/simd/x86.h

has macros for detection of AVX and AVX-2 instructions, but not AVX-512.

Could it be added? Or will it be too much trouble since AVX-512 is not a monolithic instruction set?

@grafikrobot
Copy link
Member

It's possible, and there is the MIC detection which is AVX-512. Is MIC the only cpu which implements AVX-512? But yes, the problem would be that in the current arrangement it would not be possible to define the individual subsets. It would have to be a single version number to identify it. Perhaps it could be an alternate/alias to MIC? @jfalcou and @ccharly what do you think?

@jfalcou
Copy link

jfalcou commented Mar 1, 2020

My stance on this matter as I tried to implement that in SPY :

  • Have a AVX512 detection macro ghat basically means you have 512 bits simd register
  • have a boolean macro for each sub system because avx512F does not mean Avx512dq is here

Alternatively, we could have a version number for avx like 50000 and use bit field in the lower bits to mask tets each subsystem. This means maybe more macro

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

No branches or pull requests

3 participants