Skip to content

Instantly share code, notes, and snippets.

@dferens
Created September 16, 2020 09:35
Show Gist options
  • Save dferens/b7262482b454f39882682f584d835745 to your computer and use it in GitHub Desktop.
Save dferens/b7262482b454f39882682f584d835745 to your computer and use it in GitHub Desktop.
Check AVX2 support
Linux:
$ cat /proc/cpuinfo | grep avx2
flags : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush mmx fxsr sse sse2 ss
ht syscall nx rdtscp lm constant_tsc nopl xtopology nonstop_tsc cpuid tsc_known_freq pni pclmulqdq ssse3 fma
cx16 pcid sse4_1 sse4_2 x2apic movbe popcnt tsc_deadline_timer aes xsave avx f16c rdrand hypervisor lahf_lm abm
3dnowprefetch invpcid_single pti fsgsbase tsc_adjust bmi1 avx2 smep bmi2 invpcid rdseed adx smap clflushopt
xsaveopt xsavec dtherm arat pln pts
Mac:
$ gcc -mavx2 -dM -E - < /dev/null | egrep "AVX"
#define __AVX2__ 1
#define __AVX__ 1
Windows:
https://www.cpuid.com/softwares/cpu-z.html
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment