Home
last modified time | relevance | path

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

/third_party/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()
/third_party/grpc/src/core/lib/gpr/
Dcpu_iphone.cc29 unsigned int ncpu; in gpr_cpu_num_cores() local
30 len = sizeof(ncpu); in gpr_cpu_num_cores()
31 sysctlbyname("hw.ncpu", &ncpu, &len, NULL, 0); in gpr_cpu_num_cores()
33 return ncpu; in gpr_cpu_num_cores()
/third_party/ltp/testcases/kernel/syscalls/sched_getaffinity/
Dsched_getaffinity01.c17 static long ncpu; variable
73 else if (af_cpus > ncpu) in do_test()
74 tst_res(TFAIL, "Enabled cpus = %li > system cpus %li", af_cpus, ncpu); in do_test()
87 ncpu = SAFE_SYSCONF(_SC_NPROCESSORS_CONF); in setup()
88 tst_res(TINFO, "system has %ld processor(s).", ncpu); in setup()
/third_party/mesa3d/src/util/
Du_cpu_detect.c625 int ncpu; in util_cpu_detect_once() local
626 int len = sizeof(ncpu); in util_cpu_detect_once()
628 sysctl(mib, 2, &ncpu, &len, NULL, 0); in util_cpu_detect_once()
629 available_cpus = ncpu; in util_cpu_detect_once()
640 int ncpu; in util_cpu_detect_once() local
641 int len = sizeof(ncpu); in util_cpu_detect_once()
643 sysctl(mib, 2, &ncpu, &len, NULL, 0); in util_cpu_detect_once()
644 available_cpus = ncpu; in util_cpu_detect_once()
661 int ncpu; in util_cpu_detect_once() local
662 int len = sizeof(ncpu); in util_cpu_detect_once()
[all …]
/third_party/jerryscript/tools/
Dcheck-cppcheck.sh20 CPPCHECK_JOBS=${CPPCHECK_JOBS:=$(sysctl -n hw.ncpu)}
/third_party/flutter/skia/third_party/externals/sdl/build-scripts/
Demscripten-buildbot.sh25 NCPU=`sysctl -n hw.ncpu`
Dnaclbuild.sh28 NCPU=`sysctl -n hw.ncpu`
Dchecker-buildbot.sh31 NCPU=`sysctl -n hw.ncpu`
Dandroidbuild.sh58 NCPU=`sysctl -n hw.ncpu`
Diosbuild.sh7 NCPU=`sysctl -n hw.ncpu`
/third_party/skia/third_party/externals/microhttpd/m4/
Dax_count_cpus.m441 CPU_COUNT=`/usr/sbin/sysctl -n hw.ncpu`
/third_party/toybox/scripts/
Dmake.sh23 CPUS=$(($(nproc 2>/dev/null || sysctl -n hw.ncpu 2>/dev/null)+1))
/third_party/protobuf/objectivec/DevTools/
Dfull_mac_build.sh76 NUM_MAKE_JOBS=$(/usr/sbin/sysctl -n hw.ncpu)
/third_party/re2/benchlog/
Dbenchlog.mini1 hw.ncpu: 2
39 hw.ncpu = 2
Dbenchlog.wreck3 hw.ncpu = 4
22 hw.ncpu: 4
/third_party/python/Modules/
Dposixmodule.c13233 int ncpu = 0; in os_cpu_count_impl() local
13235 ncpu = GetActiveProcessorCount(ALL_PROCESSOR_GROUPS); in os_cpu_count_impl()
13237 ncpu = mpctl(MPC_GETNUMSPUS, NULL, NULL); in os_cpu_count_impl()
13239 ncpu = sysconf(_SC_NPROCESSORS_ONLN); in os_cpu_count_impl()
13241 ncpu = _Py_popcount32(vxCpuEnabledGet()); in os_cpu_count_impl()
13248 size_t len = sizeof(ncpu); in os_cpu_count_impl()
13251 if (sysctl(mib, 2, &ncpu, &len, NULL, 0) != 0) in os_cpu_count_impl()
13252 ncpu = 0; in os_cpu_count_impl()
13254 if (ncpu >= 1) in os_cpu_count_impl()
13255 return PyLong_FromLong(ncpu); in os_cpu_count_impl()
/third_party/mbedtls/tests/scripts/
Dall.sh354 sysctl -n hw.ncpu || # FreeBSD
/third_party/skia/third_party/externals/microhttpd/
Dconfigure16703 CPU_COUNT=`/usr/sbin/sysctl -n hw.ncpu`