3 ms·
Article is from 2009 but Agner's CPU optimizations manual is still very useful. http://www.agner.org/optimize/optimizing_cpp.pdf http://www.agner.org/optimize/
by sounds 13y ago
Article is from 2009 but Agner's CPU optimizations manual is still very useful.
http://www.agner.org/optimize/optimizing_cpp.pdf http://www.agner.org/optimize/optimizing_cpp.pdf
Instructions on how to patch Intel's CPU detection routine to do your bidding is in section 13.7, pp. 132-133.
The 2009 article also has this interesting tidbit: "It is possible to change the CPUID of AMD processors by using the AMD virtualization instructions. I hope that somebody will volunteer to make a program for this purpose. This will make it easy for anybody to check if their benchmark is fair and to improve the performance of software compiled with the Intel compiler on AMD processors."