Home
last modified time | relevance | path

Searched refs:cpu_count (Results 1 – 25 of 62) sorted by relevance

123

/third_party/libuv/docs/code/multi-echo-server/
Dmain.c67 int cpu_count; in setup_workers() local
68 uv_cpu_info(&info, &cpu_count); in setup_workers()
69 uv_free_cpu_info(info, cpu_count); in setup_workers()
71 child_worker_count = cpu_count; in setup_workers()
73 workers = calloc(cpu_count, sizeof(struct child_worker)); in setup_workers()
74 while (cpu_count--) { in setup_workers()
75 struct child_worker *worker = &workers[cpu_count]; in setup_workers()
/third_party/ltp/testcases/kernel/sched/hyperthreading/ht_affinity/
Dht_affinity.c54 int cpu_count, i, j, k, cpuid; in HT_SetAffinity() local
60 cpu_count = get_cpu_count(); in HT_SetAffinity()
61 if (cpu_count == 0) { in HT_SetAffinity()
63 } else if (cpu_count > 32) in HT_SetAffinity()
64 cpu_count = 32; in HT_SetAffinity()
66 for (i = 0, mask = 0x1; i < cpu_count; i++, mask = mask << 1) { in HT_SetAffinity()
94 for (i = 0, mask = 0x3; i < cpu_count - 1; i++, mask = mask << 1) { in HT_SetAffinity()
/third_party/ltp/testcases/kernel/power_management/lib/
Dpm_sched_mc.py20 cpu_count = 0 variable
42 global cpu_count
45 cpu_count += 1
57 for i in range(0, cpu_count):
154 for i in range(0, cpu_count):
174 for i in range(0, cpu_count):
192 for i in range(0, cpu_count):
244 for i in range(0, cpu_count):
299 threads = cpu_count / socket_count
306 threads = cpu_count
[all …]
/third_party/libuv/src/unix/
Dhaiku.c153 *cpu_infos = uv__calloc(system.cpu_count, sizeof(**cpu_infos)); in uv_cpu_info()
159 for (i = 0; i < (int)system.cpu_count; i++) { in uv_cpu_info()
164 *count = system.cpu_count; in uv_cpu_info()
/third_party/ffmpeg/libavutil/tests/
Dcpu.c101 int cpu_count = av_cpu_count(); in main() local
148 printf("threads = %s (cpu_count = %d)\n", threads, cpu_count); in main()
/third_party/skia/third_party/externals/angle2/scripts/
Dprocess_angle_perf_results.py442 cpu_count = multiprocessing.cpu_count()
446 cpu_count = min(cpu_count, 56)
447 return cpu_count
/third_party/skia/gn/toolchain/
Dnum_cpus.py12 print(multiprocessing.cpu_count())
/third_party/libuv/src/win/
Dutil.c561 DWORD cpu_count, i; in uv_cpu_info() local
568 cpu_count = 0; in uv_cpu_info()
574 cpu_count = system_info.dwNumberOfProcessors; in uv_cpu_info()
576 cpu_infos = uv__calloc(cpu_count, sizeof *cpu_infos); in uv_cpu_info()
582 sppi_size = cpu_count * sizeof(*sppi); in uv_cpu_info()
600 for (i = 0; i < cpu_count; i++) { in uv_cpu_info()
662 *cpu_count_ptr = cpu_count; in uv_cpu_info()
670 for (i = 0; i < cpu_count; i++) in uv_cpu_info()
/third_party/mesa3d/src/vulkan/device-select-layer/
Ddevice_select_layer.c426 int cpu_count = 0; in get_default_device() local
439 cpu_count += fill_drm_device_info(info, &pci_infos[i], pPhysicalDevices[i]) ? 1 : 0; in get_default_device()
456 if (default_idx == -1 && cpu_count) in get_default_device()
459 if (default_idx != -1 && dri_prime_is_one && physical_device_count > (cpu_count + 1)) { in get_default_device()
/third_party/python/Lib/multiprocessing/
Dcontext.py41 def cpu_count(self): member in BaseContext
43 num = os.cpu_count()
/third_party/flutter/skia/infra/bots/assets/opencl_intel_neo_linux/
Dcreate.py52 subprocess.check_call(['make', '-j%d' % multiprocessing.cpu_count(),
/third_party/python/Lib/test/libregrtest/
Dmain.py480 cpu_count = os.cpu_count()
481 if cpu_count:
482 print("== CPU count:", cpu_count)
/third_party/vk-gl-cts/scripts/
Dlaunchcontrol_build.py59 threadCount = multiprocessing.cpu_count() + 1
/third_party/mesa3d/ohos/
Dbuild_mesa3d.py35 nproc = multiprocessing.cpu_count()
/third_party/skia/tools/skqp/
Ddownload_model.py61 pool = multiprocessing.Pool(processes=multiprocessing.cpu_count() * 2)
/third_party/flutter/skia/tools/skqp/
Ddownload_model63 pool = multiprocessing.Pool(processes=multiprocessing.cpu_count() * 2)
/third_party/skia/tools/calmbench/
Dcalmbench.py51 default_threads = max(1, multiprocessing.cpu_count() / 2);
/third_party/flutter/skia/tools/calmbench/
Dcalmbench.py49 default_threads = max(1, multiprocessing.cpu_count() / 2);
/third_party/python/Lib/concurrent/futures/
Dthread.py142 max_workers = min(32, (os.cpu_count() or 1) + 4)
/third_party/cef/tools/yapf/yapf/
D__init__.py224 workers = min(multiprocessing.cpu_count(), len(filenames))
/third_party/rust/crates/bindgen/csmith-fuzzing/
Ddriver.py209 creduce_command = ["creduce", "--n", str(os.cpu_count()), predicate_path, failing_test_case]
/third_party/vk-gl-cts/scripts/build/
Dconfig.py107 …Generator.__init__(self, "Unix Makefiles", extraBuildArgs = ["-j%d" % multiprocessing.cpu_count()])
/third_party/vk-gl-cts/scripts/ctsbuild/
Dconfig.py107 …Generator.__init__(self, "Unix Makefiles", extraBuildArgs = ["-j%d" % multiprocessing.cpu_count()])
/third_party/skia/third_party/externals/angle2/src/tests/
Dcapture_replay_tests.py223 num_cores = multiprocessing.cpu_count()
239 cmd.append('%d' % os.cpu_count())
822 worker_count = min(multiprocessing.cpu_count() - 1, args.max_jobs)
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/scripts/
Dupdate.py206 num_jobs = multiprocessing.cpu_count()

123