I get access to some xeon machines for checking performance. I want to find out what architecture they are using such as Haswell, Sandybridge , Ivybridge. Is there a command to find this out?
Linux – how to find out intel architecture family from command line
cpucpu-architecturelinux
Best Answer
It's a bit of a cheap workaround but you could get that info from gcc ! I'll explain : gcc is able to optimize binaries for each subarch with the -march option. Moreover, it is able to detect yours and automatically optimize for your machine with -march=native Assuming so, you just have to call gcc with march=native and ask it what flags it would use : in short
for me it gives
but my pc runs with an amd buldozer processor