Lines Matching defs:layer

284 // Add a layer to the topology based on the ids. Assume the topology
287 // Figure out where the layer should go by comparing the ids of the current
293 // Start from the highest layer and work down to find target layer
294 // If new layer is equal to another layer then put the new layer above
302 // Found the layer we are strictly above
307 // Found a layer we are below. Move to next layer and check.
318 // Found the layer we are above. Now move everything to accommodate the new
319 // layer. And put the new ids and type into the topology.
356 // This is done by having the layer take on the id = UNKNOWN_ID (-1)
407 // Select the layer to remove based on preference
419 // If all the indexes for the second (deeper) layer are the same.
420 // e.g., all are zero, then make sure to keep the first layer's ids
424 // the hw threads and removing the layer from types and depth
469 // Gather the count of each topology layer and the ratio
483 for (int layer = 0; layer < depth; ++layer) {
484 int id = hw_thread.ids[layer];
485 if (id != previous_id[layer]) {
487 for (int l = layer; l < depth; ++l) {
491 // Keep track of topology layer ratio statistics
492 if (hw_thread.ids[layer] != kmp_hw_thread_t::UNKNOWN_ID)
493 max[layer]++;
494 for (int l = layer + 1; l < depth; ++l) {
501 if (__kmp_is_hybrid_cpu() && core_level >= 0 && layer <= core_level) {
525 for (int layer = 0; layer < depth; ++layer) {
526 previous_id[layer] = hw_thread.ids[layer];
529 for (int layer = 0; layer < depth; ++layer) {
530 if (max[layer] > ratio[layer])
531 ratio[layer] = max[layer];
1098 // Check to see if current layer is in detected machine topology
1107 // Check to see if current layer has already been
1117 // Check to see if each layer's num & offset parameters are valid
1262 // Helpful to determine if a topology layer is targeted by an absolute subset
1270 // If not absolute KMP_HW_SUBSET, then every layer is seen as targeted
1693 // internal topology object and set the layer ids for it. Each routine
2725 // If it is an unknown level, then logically move the previous layer up
2750 // Ensure the INTEL_LEVEL_TYPE_INVALID (Socket) layer isn't first
2988 // equivalent to a layer in the CPUID leaf 0xb or 0x1f topology.
3137 // Return the index into the hierarchy for this tid and layer type (L1, L2, etc)