Repository navigation
detect AVX-512 FMA count - #125
Conversation
The information contained in this commit was obtained from "Intel® Architecture Instruction Set Extensions and Future Features Programming Reference" document 319433-040 from https://software.intel.com/content/www/us/en/develop/download/intel-architecture-instruction-set-extensions-programming-reference.html Signed-off-by: Jeff Hammond <[email protected]>
Signed-off-by: Hammond, Jeff R <[email protected]>
Signed-off-by: Hammond, Jeff R <[email protected]>
Signed-off-by: Jeff Hammond <[email protected]>
Signed-off-by: Hammond, Jeff R <[email protected]>
1) remove debug stuff 2) remove ICX - will add details when available Signed-off-by: Hammond, Jeff R <[email protected]>
Signed-off-by: Hammond, Jeff R <[email protected]>
|
@jeffhammond Can I ask you to resolve the conflicts? |
|
Yeah, they should be resolved now. Git struggles with the diamond dependency... |
gchatelet
left a comment
There was a problem hiding this comment.
Thx a lot @jeffhammond for the PRs. I really appreciate it.
| char proc_name[49] = {0}; | ||
| FillX86BrandString(proc_name); | ||
| // detect Xeon | ||
| if (proc_name[9]=='X') { |
There was a problem hiding this comment.
Is testing individual character the official way? It feels like upcoming names could match and trigger false positives.
There was a problem hiding this comment.
All of this code is within the model==0x55 conditional so it is not vulnerable to future branding changes unless they were based on the Skylake Server microarchitecture, which seems exceedingly unlikely.
In C++ implementations of this code, I do substring matching but in the C versions I just test single characters since I believe I have complete knowledge of the relevant processor names (including off-roadmap ones), in which case it should be sufficient.
Would you prefer I test multiple characters directly (test for 'X', 'e', 'o', 'n' not just 'X'), use strncmp, or use strstr? I generally avoid the latter since it doesn't have an n version.
Signed-off-by: Hammond, Jeff R <[email protected]>
Signed-off-by: Hammond, Jeff R <[email protected]>
Signed-off-by: Hammond, Jeff R <[email protected]>
This change adds support for a virtual CPUID bit called "secondFMA", which indicates whether an Intel Xeon processor has a second FMA unit. This detection is based upon the processor name, which is the best known method. It should be correct for all documented SKUs as well as most other instances, although it is impossible for me to verify on all of them, although we have a bit of experience testing SKUs already in the BLIS project.