Home
last modified time | relevance | path

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

1234

/third_party/grpc/tools/run_tests/
Drun_microbenchmark.py86 '%d' % multiprocessing.cpu_count()
115 if len(benchmarks) >= min(16, multiprocessing.cpu_count()):
120 multiprocessing.cpu_count() / 2))
121 jobset.run(profile_analysis, maxjobs=multiprocessing.cpu_count())
122 jobset.run(cleanup, maxjobs=multiprocessing.cpu_count())
128 jobset.run(benchmarks, maxjobs=max(1, multiprocessing.cpu_count() / 2))
129 jobset.run(profile_analysis, maxjobs=multiprocessing.cpu_count())
130 jobset.run(cleanup, maxjobs=multiprocessing.cpu_count())
138 '%d' % multiprocessing.cpu_count()
173 jobset.run(profile_analysis, maxjobs=multiprocessing.cpu_count())
[all …]
/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/mindspore/tests/ut/python/mindrecord/
Dskip_test_mindrecord_internal.py18 from multiprocessing import cpu_count
24 assert cpu_count() == MAX_CONSUMER_COUNT()
/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/mindspore/mindspore/_extends/parallel_compile/akg_compiler/
Dakg_process.py20 from multiprocessing import Pool, cpu_count
98 self.process_num = min([cpu_count(), max_proc_num, process_num])
/third_party/grpc/src/python/grpcio_tests/tests/qps/
Dworker_server.py45 cores = multiprocessing.cpu_count()
70 server_threads = multiprocessing.cpu_count() * 5
190 return control_pb2.CoreResponse(cores=multiprocessing.cpu_count())
/third_party/skia/gn/toolchain/
Dnum_cpus.py12 print(multiprocessing.cpu_count())
/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/mesa3d/src/vulkan/device-select-layer/
Ddevice_select_layer.c372 int cpu_count = 0; in get_default_device() local
385 cpu_count += fill_drm_device_info(info, &pci_infos[i], pPhysicalDevices[i]) ? 1 : 0; in get_default_device()
398 if (default_idx == -1 && cpu_count) in get_default_device()
402 if (default_idx != -1 && dri_prime_is_one && physical_device_count > (cpu_count + 1)) { in get_default_device()
/third_party/mindspore/mindspore/train/summary/
D_writer_pool.py81 self._queue, self._writers_ = ctx.Queue(ctx.cpu_count() * 2), None
101 with ctx.Pool(min(ctx.cpu_count(), 32)) as pool:
/third_party/grpc/src/python/grpcio/
D_parallel_compile_patch.py28 BUILD_EXT_COMPILER_JOBS = multiprocessing.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/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/grpc/tools/distrib/
Drun_clang_tidy.py46 default=multiprocessing.cpu_count(),
/third_party/grpc/tools/profiling/microbenchmarks/bm_diff/
Dbm_build.py38 default=multiprocessing.cpu_count(),
/third_party/python/Lib/multiprocessing/
Dcontext.py41 def cpu_count(self): member in BaseContext
43 num = os.cpu_count()
/third_party/mindspore/mindspore/dataset/core/
Dvalidator_helpers.py19 from multiprocessing import cpu_count
625 if value < 1 or value > cpu_count():
626 …raise ValueError("num_parallel_workers exceeds the boundary between 1 and {}!".format(cpu_count()))
/third_party/grpc/tools/profiling/bloat/
Dbloat_diff.py37 argp.add_argument('-j', '--jobs', type=int, default=multiprocessing.cpu_count())
/third_party/vk-gl-cts/scripts/
Dlaunchcontrol_build.py59 threadCount = multiprocessing.cpu_count() + 1
/third_party/grpc/examples/python/xds/
Dserver.py48 futures.ThreadPoolExecutor(max_workers=multiprocessing.cpu_count()))
/third_party/mesa3d/ohos/
Dbuild_mesa3d.py34 nproc = multiprocessing.cpu_count()
/third_party/skia/tools/skqp/
Ddownload_model.py61 pool = multiprocessing.Pool(processes=multiprocessing.cpu_count() * 2)

1234