You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
printBug("Found unified cache at level %d (expected == 2 or 3)", cache_level);
319
+
return false;
320
+
}
321
+
break;
322
+
323
+
default: // Unknown Type Cache
324
+
printBug("Unknown Type Cache found at ID %d", i);
325
+
return false;
326
+
}
327
+
}
328
+
329
+
i++;
330
+
} while (cache_type>0);
331
+
}
332
+
else {
333
+
printWarn("Can't read topology information from cpuid (needed extended level is 0x%.8X, max is 0x%.8X). Guessing cache sizes", 0x8000001D, cpu->maxExtendedLevels);
334
+
topo->cach->L1i->num_caches=topo->physical_cores;
335
+
topo->cach->L1d->num_caches=topo->physical_cores;
336
+
337
+
if(topo->cach->L3->exists) {
338
+
topo->cach->L2->num_caches=topo->physical_cores;
339
+
topo->cach->L3->num_caches=1;
307
340
}
308
341
else {
309
-
printWarn("Can't read topology information from cpuid (needed extended level is 0x%.8X, max is 0x%.8X)", 0x8000001D, cpu->maxExtendedLevels);
310
-
topo->cach->L3->num_caches=1;
342
+
topo->cach->L2->num_caches=1;
311
343
}
312
344
}
345
+
346
+
return true;
313
347
}
314
348
315
349
// Main reference: https://software.intel.com/content/www/us/en/develop/articles/intel-64-architecture-processor-topology-enumeration.html
0 commit comments