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 0acb149 commit b152b42Copy full SHA for b152b42
common/common.cpp
@@ -76,7 +76,7 @@ int32_t get_num_physical_cores() {
76
// enumerate the set of thread siblings, num entries is num cores
77
std::unordered_set<std::string> siblings;
78
for (uint32_t cpu=0; cpu < UINT32_MAX; ++cpu) {
79
- std::ifstream thread_siblings("/sys/devices/system/cpu"
+ std::ifstream thread_siblings("/sys/devices/system/cpu/cpu"
80
+ std::to_string(cpu) + "/topology/thread_siblings");
81
if (!thread_siblings.is_open()) {
82
break; // no more cpus
0 commit comments