Processors
Intel® Processors, Tools, and Utilities
14777 Discussions

EAX=7, ECX=0: Extended Features

CPUID
Beginner
709 Views

using the attached files, how can I add the CPU feature AVX2 to my binary file

 

I have converted Hexadecimal to Binary for my needs but I'm not sure which code represents AVX2. I think it's suppose to be EAX=7 but which is it, if anyone knows, please

0 Kudos
2 Replies
Steven_Intel
Moderator
676 Views

Hello CPUID,


Thank you for posting on the Intel® communities.


Is this related to your other post in this link? https://community.intel.com/t5/Processors/ESXi-7-0e-with-Ryzen-5950x/m-p/1390254#M58103


Best regards,


Steven G.

Intel Customer Support Technician.


0 Kudos
n_scott_pearson
Super User
667 Views

CPUID should be invoked with EAX=0x07 and ECX=0x00. In the resulting EBX value, availability of AVX2 is indicated by Bit 05. To check it, you should AND the EBX value with 0x20; if the result is then non-zero, you know your processor has support for AVX2.

Hope this helps,

...S

0 Kudos
Reply