sample shows cpu cache info for AMD

This commit is contained in:
MITSUNARI Shigeo 2023-02-17 12:03:44 +09:00
parent edce727092
commit 363bbaa57d

View file

@ -127,7 +127,6 @@ void putCPUinfo(bool onlyCpuidFeature)
Core i7-3930K 6 2D
*/
cpu.putFamily();
if (!cpu.has(Cpu::tINTEL)) return;
for (unsigned int i = 0; i < cpu.getDataCacheLevels(); i++) {
printf("cache level=%u data cache size=%u cores sharing data cache=%u\n", i, cpu.getDataCacheSize(i), cpu.getCoresSharingDataCache(i));
}