/third_party/libuv/docs/code/multi-echo-server/ |
H A D | main.c | 67 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/ |
H A D | ht_affinity.c | 54 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/ |
H A D | pm_sched_mc.py | 20 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/node/deps/v8/tools/clusterfuzz/js_fuzzer/tools/ |
H A D | minimize.py | 16 from multiprocessing import cpu_count namespace 20 PROCESSES = cpu_count()
|
H A D | workbench.py | 26 from multiprocessing import Pool, cpu_count namespace 32 PROCESSES = cpu_count()
|
/third_party/libuv/src/unix/ |
H A D | haiku.c | 158 *cpu_infos = uv__calloc(system.cpu_count, sizeof(**cpu_infos)); in uv_cpu_info() 164 for (i = 0; i < (int)system.cpu_count; i++) { in uv_cpu_info() 169 *count = system.cpu_count; in uv_cpu_info()
|
/third_party/node/deps/uv/src/unix/ |
H A D | haiku.c | 153 *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/ |
H A D | cpu.c | 105 int cpu_count = av_cpu_count(); in main() local 152 printf("threads = %s (cpu_count = %d)\n", threads, cpu_count); in main()
|
/third_party/astc-encoder/Source/ |
H A D | astcenccli_platform_dependents.cpp | 131 DWORD cpu_count = GetActiveProcessorCount(ALL_PROCESSOR_GROUPS); in get_cpu_count() local 132 return static_cast<int>(cpu_count); in get_cpu_count()
|
/third_party/vixl/tools/ |
H A D | clang_tidy.py | 50 default=multiprocessing.cpu_count(), 51 const=multiprocessing.cpu_count(),
|
H A D | clang_format.py | 65 default = multiprocessing.cpu_count(), 66 const = multiprocessing.cpu_count(),
|
H A D | lint.py | 62 default=multiprocessing.cpu_count(), 63 const=multiprocessing.cpu_count(),
|
/third_party/skia/gn/toolchain/ |
H A D | num_cpus.py | 12 print(multiprocessing.cpu_count())
|
/third_party/ffmpeg/libavutil/ |
H A D | cpu.c | 53 static atomic_int cpu_count = ATOMIC_VAR_INIT(-1); variable 239 count = atomic_load_explicit(&cpu_count, memory_order_relaxed); in av_cpu_count() 251 atomic_store_explicit(&cpu_count, count, memory_order_relaxed); in av_cpu_force_count()
|
/third_party/skia/third_party/externals/angle2/scripts/ |
H A D | process_angle_perf_results.py | 442 cpu_count = multiprocessing.cpu_count() 446 cpu_count = min(cpu_count, 56) 447 return cpu_count 453 # we can even delete this whole function and use multiprocessing.cpu_count()
|
/third_party/libuv/src/win/ |
H A D | util.c | 536 DWORD cpu_count, i; in uv_cpu_info() local 543 cpu_count = 0; in uv_cpu_info() 549 cpu_count = system_info.dwNumberOfProcessors; in uv_cpu_info() 551 cpu_infos = uv__calloc(cpu_count, sizeof *cpu_infos); in uv_cpu_info() 557 sppi_size = cpu_count * sizeof(*sppi); in uv_cpu_info() 575 for (i = 0; i < cpu_count; i++) { in uv_cpu_info() 637 *cpu_count_ptr = cpu_count; in uv_cpu_info() 645 for (i = 0; i < cpu_count; i++) in uv_cpu_info()
|
/third_party/node/deps/uv/src/win/ |
H A D | util.c | 561 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/node/deps/v8/tools/sanitizers/ |
H A D | sancov_merger.py | 32 from multiprocessing import Pool, cpu_count namespace 47 CPUS = cpu_count()
|
H A D | sancov_formatter.py | 54 from multiprocessing import Pool, cpu_count namespace 99 CPUS = cpu_count()
|
/third_party/mesa3d/src/vulkan/device-select-layer/ |
H A D | device_select_layer.c | 426 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/mesa3d/ohos/ |
H A D | build_mesa3d.py | 35 nproc = multiprocessing.cpu_count()
|
/third_party/vk-gl-cts/scripts/ |
H A D | launchcontrol_build.py | 59 threadCount = multiprocessing.cpu_count() + 1
|
/third_party/python/Lib/multiprocessing/ |
H A D | context.py | 41 def cpu_count(self): member in BaseContext 43 num = os.cpu_count()
|
/third_party/python/Lib/test/libregrtest/ |
H A D | main.py | 522 cpu_count = os.cpu_count() 523 if cpu_count: 524 print("== CPU count:", cpu_count)
|
/third_party/skia/tools/skqp/ |
H A D | download_model.py | 61 pool = multiprocessing.Pool(processes=multiprocessing.cpu_count() * 2)
|