Changeset View
Changeset View
Standalone View
Standalone View
runtime/src/kmp_affinity.cpp
Show First 20 Lines • Show All 221 Lines • ▼ Show 20 Lines | for (i = 1; i < numAddrs; i++) { | ||||
} | } | ||||
for (labCt = 0; labCt < depth; labCt++) { | for (labCt = 0; labCt < depth; labCt++) { | ||||
address2os[i].first.childNums[labCt] = counts[labCt]; | address2os[i].first.childNums[labCt] = counts[labCt]; | ||||
} | } | ||||
for (; labCt < (int)Address::maxDepth; labCt++) { | for (; labCt < (int)Address::maxDepth; labCt++) { | ||||
address2os[i].first.childNums[labCt] = 0; | address2os[i].first.childNums[labCt] = 0; | ||||
} | } | ||||
} | } | ||||
__kmp_free(lastLabel); | |||||
__kmp_free(counts); | |||||
} | } | ||||
// | // | ||||
// All of the __kmp_affinity_create_*_map() routines should set | // All of the __kmp_affinity_create_*_map() routines should set | ||||
// __kmp_affinity_masks to a vector of affinity mask objects of length | // __kmp_affinity_masks to a vector of affinity mask objects of length | ||||
// __kmp_affinity_num_masks, if __kmp_affinity_type != affinity_none, and | // __kmp_affinity_num_masks, if __kmp_affinity_type != affinity_none, and | ||||
// return the number of levels in the machine topology tree (zero if | // return the number of levels in the machine topology tree (zero if | ||||
▲ Show 20 Lines • Show All 4,582 Lines • Show Last 20 Lines |