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
if (!GetLogicalProcessorInformationEx(RelationProcessorCore, reinterpret_cast<PSYSTEM_LOGICAL_PROCESSOR_INFORMATION_EX>(buffer.data()), &buffer_size)) {
89
+
return0;
90
+
}
91
+
92
+
int num_cores_win = 0;
93
+
PSYSTEM_LOGICAL_PROCESSOR_INFORMATION_EX info = reinterpret_cast<PSYSTEM_LOGICAL_PROCESSOR_INFORMATION_EX>(buffer.data());
94
+
while (buffer_size > 0) {
95
+
if (info->Relationship == RelationProcessorCore) {
96
+
if (print_physical_core_num) {
97
+
num_cores_win += info->Processor.GroupCount;
98
+
} else {
99
+
for (WORD i = 0; i < info->Processor.GroupCount; ++i) {
0 commit comments