- // Run as many threads as possible on the same node until core limit is
- // reached, then move on filling the next node.
- for (int n = 0; n < nodes; n++)
- for (int i = 0; i < cores / nodes; i++)
- groups.push_back(n);
+ // Run as many threads as possible on the same group until core limit is
+ // reached, then move on filling the next group.
+ for (int n = 0; n < groups; n++)
+ for (int i = 0; i < cores / groups; i++)
+ core_groups.push_back(n);