Home
last modified time | relevance | path

Searched refs:ncpu (Results 1 – 21 of 21) 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/v8/src/base/
Dsys-info.cc34 int ncpu = 0; in NumberOfProcessors() local
35 size_t len = sizeof(ncpu); in NumberOfProcessors()
36 if (sysctl(mib, arraysize(mib), &ncpu, &len, NULL, 0) != 0) { in NumberOfProcessors()
39 return ncpu; in NumberOfProcessors()
/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.c320 int mib[2], ncpu; in util_cpu_detect() local
326 len = sizeof (ncpu); in util_cpu_detect()
327 sysctl(mib, 2, &ncpu, &len, NULL, 0); in util_cpu_detect()
328 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/
Dupdate_external_sources.sh11 CORE_COUNT=$(sysctl -n hw.ncpu || echo 4)
DBUILD.md328 ndk-build -j $(sysctl -n hw.ncpu)
/external/vulkan-validation-layers/build-android/
Dbuild_all.sh30 cores=$(sysctl -n hw.ncpu) || echo 4
Dupdate_external_sources_android.sh48 cores=$(sysctl -n hw.ncpu)
/external/libmicrohttpd/m4/
Dax_count_cpus.m441 CPU_COUNT=`/usr/sbin/sysctl -n hw.ncpu`
/external/google-breakpad/android/
Dcommon-functions.sh193 sysctl -n hw.ncpu
/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/llvm/utils/release/
Dtest-release.sh198 NumJobs=`sysctl -n hw.ncpu 2> /dev/null || true`
/external/python/cpython3/Modules/
Dposixmodule.c10977 int ncpu = 0;
10981 ncpu = sysinfo.dwNumberOfProcessors;
10983 ncpu = mpctl(MPC_GETNUMSPUS, NULL, NULL);
10985 ncpu = sysconf(_SC_NPROCESSORS_ONLN);
10992 size_t len = sizeof(ncpu);
10995 if (sysctl(mib, 2, &ncpu, &len, NULL, 0) != 0)
10996 ncpu = 0;
10998 if (ncpu >= 1)
10999 return PyLong_FromLong(ncpu);
/external/libmicrohttpd/
Dconfigure16703 CPU_COUNT=`/usr/sbin/sysctl -n hw.ncpu`