/external/ltp/testcases/open_posix_testsuite/include/ |
D | ncpu.h | 37 int ncpu = -1; in get_ncpu() local 41 ncpu = sysconf(_SC_NPROCESSORS_ONLN); in get_ncpu() 45 size_t len = sizeof(ncpu); in get_ncpu() 48 sysctl(mib, 2, &ncpu, &len, NULL, 0); in get_ncpu() 53 ncpu = (int)psd.psd_proc_cnt; in get_ncpu() 57 return ncpu; in get_ncpu()
|
/external/bcc/tools/ |
D | cpuunclaimed.py | 98 ncpu = multiprocessing.cpu_count() # assume all are online variable 176 print(",".join("CPU" + str(c) for c in range(ncpu)), end="") 179 print(",".join("OFFSET_ns_CPU" + str(c) for c in range(ncpu)), end="") 252 lens = [0] * ncpu 253 offs = [0] * ncpu 262 print(",".join(str(lens[c]) for c in range(ncpu)), end="") 265 print(",".join(str(offs[c]) for c in range(ncpu))) 277 g_idle = ncpu - g_running
|
/external/v8/src/base/ |
D | sys-info.cc | 36 int ncpu = 0; in NumberOfProcessors() local 37 size_t len = sizeof(ncpu); in NumberOfProcessors() 38 if (sysctl(mib, arraysize(mib), &ncpu, &len, nullptr, 0) != 0) { in NumberOfProcessors() 41 return ncpu; in NumberOfProcessors()
|
/external/virglrenderer/src/gallium/auxiliary/util/ |
D | u_cpu_detect.c | 321 int mib[2], ncpu; in util_cpu_detect() local 327 len = sizeof (ncpu); in util_cpu_detect() 328 sysctl(mib, 2, &ncpu, &len, NULL, 0); in util_cpu_detect() 329 util_cpu_caps.nr_cpus = ncpu; in util_cpu_detect()
|
/external/strace/ |
D | affinity.c | 71 const unsigned int ncpu = size * 8; in print_affinitylist() local 86 i = next_set_bit(cpu, i, ncpu); in print_affinitylist()
|
/external/mesa3d/src/gallium/auxiliary/util/ |
D | u_cpu_detect.c | 381 int mib[2], ncpu; in util_cpu_detect() local 387 len = sizeof (ncpu); in util_cpu_detect() 388 sysctl(mib, 2, &ncpu, &len, NULL, 0); in util_cpu_detect() 389 util_cpu_caps.nr_cpus = ncpu; in util_cpu_detect()
|
/external/tensorflow/tensorflow/tools/ci_build/builds/ |
D | cmake.sh | 24 N_JOBS=$(sysctl -n hw.ncpu)
|
/external/tensorflow/tensorflow/tools/ci_build/osx/cpu/ |
D | run_py3_cc_core.sh | 21 N_JOBS=$(sysctl -n hw.ncpu)
|
D | run_contrib.sh | 21 N_JOBS=$(sysctl -n hw.ncpu)
|
D | run_py2_cc_core.sh | 21 N_JOBS=$(sysctl -n hw.ncpu)
|
/external/tensorflow/tensorflow/contrib/makefile/ |
D | build_helper.subr | 23 sysctl hw.ncpu | awk '{print $2}' ;;
|
/external/vulkan-validation-layers/build-android/ |
D | update_external_sources_android.sh | 28 cores=$(sysctl -n hw.ncpu)
|
D | build_all.sh | 30 cores=$(sysctl -n hw.ncpu) || echo 4
|
/external/grpc-grpc-java/buildscripts/ |
D | make_dependencies.sh | 20 NUM_CPU=$(sysctl -n hw.ncpu)
|
/external/google-breakpad/android/ |
D | common-functions.sh | 193 sysctl -n hw.ncpu
|
/external/blktrace/ |
D | blktrace.c | 2725 int n, ncpu, curcpu = 0; in get_online_cpus() local 2728 ncpu = sysconf(_SC_NPROCESSORS_CONF); in get_online_cpus() 2729 if (ncpu < 0) in get_online_cpus() 2732 cpu_nums = malloc(sizeof(int)*ncpu); in get_online_cpus() 2756 if (curcpu >= ncpu) { in get_online_cpus() 2766 ncpu = curcpu; in get_online_cpus() 2767 max_cpus = cpu_nums[ncpu - 1] + 1; in get_online_cpus() 2778 for (curcpu = 0; curcpu < ncpu; curcpu++) in get_online_cpus()
|
/external/protobuf/objectivec/DevTools/ |
D | full_mac_build.sh | 68 NUM_MAKE_JOBS=$(/usr/sbin/sysctl -n hw.ncpu)
|
/external/swiftshader/third_party/LLVM/utils/release/ |
D | test-release.sh | 125 NumJobs=`sysctl -n hw.ncpu 2> /dev/null || true`
|
/external/swiftshader/third_party/LLVM/utils/buildit/ |
D | build_llvm | 260 SYSCTL=`sysctl -n hw.ncpu`
|
/external/python/cpython2/Lib/test/ |
D | regrtest.py | 699 ncpu = cpu_count() 700 if ncpu: 701 print "== CPU count:", ncpu
|
/external/swiftshader/third_party/llvm-7.0/llvm/utils/release/ |
D | test-release.sh | 199 NumJobs=`sysctl -n hw.ncpu 2> /dev/null || true`
|
/external/llvm/utils/release/ |
D | test-release.sh | 198 NumJobs=`sysctl -n hw.ncpu 2> /dev/null || true`
|
/external/vulkan-validation-layers/scripts/ |
D | update_deps.py | 439 .format(ncpu=multiprocessing.cpu_count()))
|
/external/python/cpython3/Modules/ |
D | posixmodule.c | 11394 int ncpu = 0; in os_cpu_count_impl() local 11405 ncpu = _GetMaximumProcessorCount(ALL_PROCESSOR_GROUPS); in os_cpu_count_impl() 11410 ncpu = sysinfo.dwNumberOfProcessors; in os_cpu_count_impl() 11413 ncpu = mpctl(MPC_GETNUMSPUS, NULL, NULL); in os_cpu_count_impl() 11415 ncpu = sysconf(_SC_NPROCESSORS_ONLN); in os_cpu_count_impl() 11422 size_t len = sizeof(ncpu); in os_cpu_count_impl() 11425 if (sysctl(mib, 2, &ncpu, &len, NULL, 0) != 0) in os_cpu_count_impl() 11426 ncpu = 0; in os_cpu_count_impl() 11428 if (ncpu >= 1) in os_cpu_count_impl() 11429 return PyLong_FromLong(ncpu); in os_cpu_count_impl()
|