We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ff3ffab commit 301b088Copy full SHA for 301b088
src/cpu/xbyak/xbyak_util.h
@@ -177,6 +177,11 @@ class Cpu {
177
numCores_[level - 1] = extractBit(data[1], 0, 15);
178
}
179
180
+ /*
181
+ Everybody lies, so we need some sane values to fall back on
182
+ */
183
+ numCores_[SmtLevel - 1] = std::max(1u, numCores_[SmtLevel - 1]);
184
+ numCores_[CoreLevel - 1] = std::max(numCores_[SmtLevel - 1], numCores_[CoreLevel - 1]);
185
} else {
186
/*
187
Failed to deremine num of cores without x2APIC support.
0 commit comments