AVX / AVX2 / AVX512

Check AVX on Windows

To check if your CPU has AVX capabilities, start by hitting the Windows button on your computer. Then, type “System information“. Locate your CPU model number there. Copy the model number and search on as Google. From there, you can visit the website of the CPU manufacturer to determine if it has AVX capabilities.

Check AVX on Linux

grep -o 'avx[^ ]*' /proc/cpuinfo
or
tr ' ' '\n' < /proc/cpuinfo | grep avx

How to Enable AVX on Windows

If your CPU does support AVX If your CPU does support AVX

  1. Press the Windows button and type “cmd” in the search bar
  2. Right-click on the Command Prompt and select “Run as administrator
  3. In the Command Prompt, type “bcdedit /set xsavedisable 0” and press enter
  4. You will see a confirmation message that AVX is now enabled on your Windows system.

How to Enable AVX on Linux

To check and enable AVX on Linux, follow these simple steps:

  • Launch the root terminal by pressing Ctrl + T
  • Update your packages by running the command “sudo apt-get update
  • Install the MKL package with this command: “sudo apt-get install libmkl-dev libmkl-avx

AVX is very important feature as core count and clock speeds. But, it is a nice-to-have. Hope this article cleared all your doubts surrounding it.

发表评论