Home
last modified time | relevance | path

Searched refs:KMP_CPU_SET_SIZE_LIMIT (Results 1 – 1 of 1) sorted by relevance

/external/llvm-project/openmp/runtime/src/
Dz_Linux_util.cpp126 #define KMP_CPU_SET_SIZE_LIMIT (1024 * 1024) in __kmp_affinity_determine_capable() macro
128 #define KMP_CPU_SET_SIZE_LIMIT (sizeof(cpuset_t)) in __kmp_affinity_determine_capable()
139 buf = (unsigned char *)KMP_INTERNAL_MALLOC(KMP_CPU_SET_SIZE_LIMIT); in __kmp_affinity_determine_capable()
140 gCode = syscall(__NR_sched_getaffinity, 0, KMP_CPU_SET_SIZE_LIMIT, buf); in __kmp_affinity_determine_capable()
207 for (size = 1; size <= KMP_CPU_SET_SIZE_LIMIT; size *= 2) { in __kmp_affinity_determine_capable()
281 buf = (unsigned char *)KMP_INTERNAL_MALLOC(KMP_CPU_SET_SIZE_LIMIT); in __kmp_affinity_determine_capable()
282 …gCode = pthread_getaffinity_np(pthread_self(), KMP_CPU_SET_SIZE_LIMIT, reinterpret_cast<cpuset_t *… in __kmp_affinity_determine_capable()
287 KMP_AFFINITY_ENABLE(KMP_CPU_SET_SIZE_LIMIT); in __kmp_affinity_determine_capable()