How to tell if a Linux machine supports AVX/AVX2 instructions?
问题 I'm on SUSE Linux Enterprise 10/11 machines. I launch my regressions to a farm of machines running Intel processors. Some of my tests fail because my tools are built using a library which requires AVX/AVX2 instruction support. I get an Illegal exception error. In Linux, is there any commands I can use to determine what is the CPU code/family name? I believe AVX and AVX2 are available onward from Intel SandyBridge and Haswell family, respectively. 回答1: On linux (or unix machines) the