/third_party/grpc/tools/run_tests/ |
D | run_microbenchmark.py | 86 '%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/ |
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/ |
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/ |
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/mindspore/tests/ut/python/mindrecord/ |
D | skip_test_mindrecord_internal.py | 18 from multiprocessing import cpu_count 24 assert cpu_count() == MAX_CONSUMER_COUNT()
|
/third_party/libuv/src/unix/ |
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/ |
D | cpu.c | 101 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/ |
D | akg_process.py | 20 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/ |
D | worker_server.py | 45 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/ |
D | num_cpus.py | 12 print(multiprocessing.cpu_count())
|
/third_party/skia/third_party/externals/angle2/scripts/ |
D | process_angle_perf_results.py | 442 cpu_count = multiprocessing.cpu_count() 446 cpu_count = min(cpu_count, 56) 447 return cpu_count
|
/third_party/mesa3d/src/vulkan/device-select-layer/ |
D | device_select_layer.c | 372 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.py | 81 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.py | 28 BUILD_EXT_COMPILER_JOBS = multiprocessing.cpu_count()
|
/third_party/flutter/skia/infra/bots/assets/opencl_intel_neo_linux/ |
D | create.py | 52 subprocess.check_call(['make', '-j%d' % multiprocessing.cpu_count(),
|
/third_party/libuv/src/win/ |
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/grpc/tools/distrib/ |
D | run_clang_tidy.py | 46 default=multiprocessing.cpu_count(),
|
/third_party/grpc/tools/profiling/microbenchmarks/bm_diff/ |
D | bm_build.py | 38 default=multiprocessing.cpu_count(),
|
/third_party/python/Lib/multiprocessing/ |
D | context.py | 41 def cpu_count(self): member in BaseContext 43 num = os.cpu_count()
|
/third_party/mindspore/mindspore/dataset/core/ |
D | validator_helpers.py | 19 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/ |
D | bloat_diff.py | 37 argp.add_argument('-j', '--jobs', type=int, default=multiprocessing.cpu_count())
|
/third_party/vk-gl-cts/scripts/ |
D | launchcontrol_build.py | 59 threadCount = multiprocessing.cpu_count() + 1
|
/third_party/grpc/examples/python/xds/ |
D | server.py | 48 futures.ThreadPoolExecutor(max_workers=multiprocessing.cpu_count()))
|
/third_party/mesa3d/ohos/ |
D | build_mesa3d.py | 34 nproc = multiprocessing.cpu_count()
|
/third_party/skia/tools/skqp/ |
D | download_model.py | 61 pool = multiprocessing.Pool(processes=multiprocessing.cpu_count() * 2)
|