Lines Matching defs:layer

265 // Add a layer to the topology based on the ids. Assume the topology
268 // Figure out where the layer should go by comparing the ids of the current
274 // Start from the highest layer and work down to find target layer
275 // If new layer is equal to another layer then put the new layer above
283 // Found the layer we are strictly above
288 // Found a layer we are below. Move to next layer and check.
299 // Found the layer we are above. Now move everything to accommodate the new
300 // layer. And put the new ids and type into the topology.
337 // This is done by having the layer take on the id = UNKNOWN_ID (-1)
388 // Select the layer to remove based on preference
400 // If all the indexes for the second (deeper) layer are the same.
401 // e.g., all are zero, then make sure to keep the first layer's ids
405 // the hw threads and removing the layer from types and depth
450 // Gather the count of each topology layer and the ratio
464 for (int layer = 0; layer < depth; ++layer) {
465 int id = hw_thread.ids[layer];
466 if (id != previous_id[layer]) {
468 for (int l = layer; l < depth; ++l)
470 // Keep track of topology layer ratio statistics
471 max[layer]++;
472 for (int l = layer + 1; l < depth; ++l) {
479 if (__kmp_is_hybrid_cpu() && core_level >= 0 && layer <= core_level) {
503 for (int layer = 0; layer < depth; ++layer) {
504 previous_id[layer] = hw_thread.ids[layer];
507 for (int layer = 0; layer < depth; ++layer) {
508 if (max[layer] > ratio[layer])
509 ratio[layer] = max[layer];
1074 // Check to see if current layer is in detected machine topology
1083 // Check to see if current layer has already been
1093 // Check to see if each layer's num & offset parameters are valid
1238 // Helpful to determine if a topology layer is targeted by an absolute subset
1246 // If not absolute KMP_HW_SUBSET, then every layer is seen as targeted
1664 // internal topology object and set the layer ids for it. Each routine
2604 // If it is an unknown level, then logically move the previous layer up
2613 // Ensure the INTEL_LEVEL_TYPE_INVALID (Socket) layer isn't first
2887 // Return the index into the hierarchy for this tid and layer type (L1, L2, etc)