Home
last modified time | relevance | path

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

/external/ltp/testcases/open_posix_testsuite/include/
Dncpu.h37 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/
Dcpuunclaimed.py98 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/
Dsys-info.cc36 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/
Du_cpu_detect.c321 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/
Daffinity.c71 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/
Du_cpu_detect.c381 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/
Dcmake.sh24 N_JOBS=$(sysctl -n hw.ncpu)
/external/tensorflow/tensorflow/tools/ci_build/osx/cpu/
Drun_py3_cc_core.sh21 N_JOBS=$(sysctl -n hw.ncpu)
Drun_contrib.sh21 N_JOBS=$(sysctl -n hw.ncpu)
Drun_py2_cc_core.sh21 N_JOBS=$(sysctl -n hw.ncpu)
/external/tensorflow/tensorflow/contrib/makefile/
Dbuild_helper.subr23 sysctl hw.ncpu | awk '{print $2}' ;;
/external/vulkan-validation-layers/build-android/
Dupdate_external_sources_android.sh28 cores=$(sysctl -n hw.ncpu)
Dbuild_all.sh30 cores=$(sysctl -n hw.ncpu) || echo 4
/external/grpc-grpc-java/buildscripts/
Dmake_dependencies.sh20 NUM_CPU=$(sysctl -n hw.ncpu)
/external/google-breakpad/android/
Dcommon-functions.sh193 sysctl -n hw.ncpu
/external/blktrace/
Dblktrace.c2725 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/
Dfull_mac_build.sh68 NUM_MAKE_JOBS=$(/usr/sbin/sysctl -n hw.ncpu)
/external/swiftshader/third_party/LLVM/utils/release/
Dtest-release.sh125 NumJobs=`sysctl -n hw.ncpu 2> /dev/null || true`
/external/swiftshader/third_party/LLVM/utils/buildit/
Dbuild_llvm260 SYSCTL=`sysctl -n hw.ncpu`
/external/python/cpython2/Lib/test/
Dregrtest.py699 ncpu = cpu_count()
700 if ncpu:
701 print "== CPU count:", ncpu
/external/swiftshader/third_party/llvm-7.0/llvm/utils/release/
Dtest-release.sh199 NumJobs=`sysctl -n hw.ncpu 2> /dev/null || true`
/external/llvm/utils/release/
Dtest-release.sh198 NumJobs=`sysctl -n hw.ncpu 2> /dev/null || true`
/external/vulkan-validation-layers/scripts/
Dupdate_deps.py439 .format(ncpu=multiprocessing.cpu_count()))
/external/python/cpython3/Modules/
Dposixmodule.c11394 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()