Home
last modified time | relevance | path

Searched refs:num_cpus (Results 1 – 25 of 132) sorted by relevance

123456

/external/rust/crates/num_cpus/
DREADME.md1 # num_cpus chapter
3 [![crates.io](http://meritbadge.herokuapp.com/num_cpus)](https://crates.io/crates/num_cpus)
4 …tatus](https://travis-ci.org/seanmonstar/num_cpus.svg?branch=master)](https://travis-ci.org/seanmo…
7 - [Documentation](https://docs.rs/num_cpus)
18 num_cpus = "1.0"
24 extern crate num_cpus;
27 let num = num_cpus::get();
DMETADATA1 name: "num_cpus"
8 value: "https://crates.io/crates/num_cpus"
12 value: "https://static.crates.io/crates/num_cpus/num_cpus-1.13.0.crate"
DCargo.toml.orig3 name = "num_cpus"
8 repository = "https://github.com/seanmonstar/num_cpus"
9 documentation = "https://docs.rs/num_cpus"
DCargo.toml14 name = "num_cpus"
18 documentation = "https://docs.rs/num_cpus"
23 repository = "https://github.com/seanmonstar/num_cpus"
/external/crosvm/aarch64/src/
Dfdt.rs70 fn create_cpu_nodes(fdt: &mut FdtWriter, num_cpus: u32) -> Result<()> { in create_cpu_nodes()
75 for cpu_id in 0..num_cpus { in create_cpu_nodes()
80 if num_cpus > 1 { in create_cpu_nodes()
90 fn create_gic_node(fdt: &mut FdtWriter, is_gicv3: bool, num_cpus: u64) -> Result<()> { in create_gic_node()
96 gic_reg_prop[2] = AARCH64_GIC_DIST_BASE - (AARCH64_GIC_REDIST_SIZE * num_cpus); in create_gic_node()
97 gic_reg_prop[3] = AARCH64_GIC_REDIST_SIZE * num_cpus; in create_gic_node()
114 fn create_timer_node(fdt: &mut FdtWriter, num_cpus: u32) -> Result<()> { in create_timer_node()
119 (((1 << num_cpus) - 1) << GIC_FDT_IRQ_PPI_CPU_SHIFT) & GIC_FDT_IRQ_PPI_CPU_MASK; in create_timer_node()
137 fn create_pmu_node(fdt: &mut FdtWriter, num_cpus: u32) -> Result<()> { in create_pmu_node()
140 (((1 << num_cpus) - 1) << GIC_FDT_IRQ_PPI_CPU_SHIFT) & GIC_FDT_IRQ_PPI_CPU_MASK; in create_pmu_node()
[all …]
/external/crosvm/x86_64/src/
Dmptable.rs105 fn compute_mp_size(num_cpus: u8) -> usize { in compute_mp_size()
108 + mem::size_of::<mpc_cpu>() * (num_cpus as usize) in compute_mp_size()
119 num_cpus: u8, in setup_mptable()
130 let mp_size = compute_mp_size(num_cpus); in setup_mptable()
165 let ioapicid: u8 = num_cpus + 1; in setup_mptable()
167 for cpu_id in 0..num_cpus { in setup_mptable()
380 fn compute_page_aligned_mp_size(num_cpus: u8) -> u64 { in compute_page_aligned_mp_size()
381 let mp_size = compute_mp_size(num_cpus); in compute_page_aligned_mp_size()
399 let num_cpus = 4; in bounds_check() localVariable
402 compute_page_aligned_mp_size(num_cpus), in bounds_check()
[all …]
/external/rust/crates/num_cpus/examples/
Dvalues.rs1 extern crate num_cpus;
4 println!("Logical CPUs: {}", num_cpus::get()); in main()
5 println!("Physical CPUs: {}", num_cpus::get_physical()); in main()
/external/ltp/testcases/kernel/sched/tool/
Dtrace_sched.c295 int num_cpus = UP; /* assume machine is an UP machine. */ in main() local
325 if ((num_cpus = atoi(optarg)) == 0) in main()
327 else if (num_cpus < 0) { in main()
330 num_cpus); in main()
331 num_cpus = UP; in main()
334 num_thrd = num_thrd * num_cpus; in main()
443 "Scheduling policy: %d\n", num_thrd, num_cpus, in main()
450 for (proc_ndx = 0; proc_ndx < num_cpus; proc_ndx++) { in main()
/external/tensorflow/tensorflow/core/distributed_runtime/rpc/
Dgrpc_testlib_server.cc39 int num_cpus, int num_gpus, int task_index, in FillServerDef() argument
70 (*config->mutable_device_count())["CPU"] = num_cpus; in FillServerDef()
82 int num_cpus = 1; in main() local
89 tensorflow::Flag("num_cpus", &num_cpus, "number of CPUs"), in main()
100 tensorflow::Status s = tensorflow::FillServerDef(job_spec, job_name, num_cpus, in main()
/external/rust/crates/crossbeam-channel/benches/
Dcrossbeam.rs39 let threads = num_cpus::get(); in par_inout()
102 let threads = num_cpus::get() - 1; in spmc()
138 let threads = num_cpus::get() - 1; in mpsc()
174 let threads = num_cpus::get(); in mpmc()
250 let threads = num_cpus::get() - 1; in spmc()
286 let threads = num_cpus::get() - 1; in mpsc()
322 let threads = num_cpus::get(); in par_inout()
356 let threads = num_cpus::get(); in mpmc()
447 let threads = num_cpus::get() - 1; in spmc()
483 let threads = num_cpus::get() - 1; in mpsc()
[all …]
/external/ltp/testcases/kernel/controllers/cpuctl/
Dcpuctl_def_task01.c89 int num_cpus, test_num, len; /* Total time = TIME_INTERVAL*num_cpus */ in main() local
107 num_cpus = 0; in main()
120 ((num_cpus = atoi(argv[4])) <= 0) || in main()
209 (delta_time * num_cpus); in main()
212 (TIME_INTERVAL * num_cpus); in main()
Dcpuctl_test03.c87 int num_cpus; /* Total time = TIME_INTERVAL *num_cpus in the machine */ in main() local
107 num_cpus = 0; in main()
133 num_cpus = atoi(num_cpus_p); in main()
208 (delta_cpu_time * 100) / (delta_time * num_cpus); in main()
211 (delta_cpu_time * 100) / (TIME_INTERVAL * num_cpus); in main()
Dcpuctl_test04.c88 int num_cpus; /* Total time = TIME_INTERVAL *num_cpus in the machine */ in main() local
108 num_cpus = 0; in main()
134 num_cpus = atoi(num_cpus_p); in main()
219 (delta_cpu_time * 100) / (delta_time * num_cpus); in main()
222 (delta_cpu_time * 100) / (TIME_INTERVAL * num_cpus); in main()
Dcpuctl_test01.c87 int num_cpus; in main() local
108 num_cpus = 0; in main()
120 || ((num_cpus = atoi(argv[4])) <= 0) in main()
201 (delta_cpu_time * 100) / (delta_time * num_cpus); in main()
204 (delta_cpu_time * 100) / (TIME_INTERVAL * num_cpus); in main()
Dcpuctl_def_task03.c84 int test_num, task_num, len, num_cpus; in main() local
105 num_cpus = 0; in main()
130 num_cpus = atoi(num_cpus_p); in main()
216 (delta_time * num_cpus); in main()
219 (TIME_INTERVAL * num_cpus); in main()
Dcpuctl_def_task02.c87 int num_cpus; in main() local
109 num_cpus = 0; in main()
134 num_cpus = atoi(num_cpus_p); in main()
220 (delta_time * num_cpus); in main()
223 (TIME_INTERVAL * num_cpus); in main()
Dcpuctl_def_task04.c87 int num_cpus; in main() local
108 num_cpus = 0; in main()
133 num_cpus = atoi(num_cpus_p); in main()
226 (delta_time * num_cpus); in main()
229 (TIME_INTERVAL * num_cpus); in main()
Dcpuctl_test02.c89 int num_cpus; /* Total time = TIME_INTERVAL *num_cpus in the machine */ in main() local
111 num_cpus = 0; in main()
137 num_cpus = atoi(num_cpus_p); in main()
212 (delta_cpu_time * 100) / (delta_time * num_cpus); in main()
215 (delta_cpu_time * 100) / (TIME_INTERVAL * num_cpus); in main()
/external/llvm-project/llvm/utils/benchmark/src/
Dreporter.cc44 Out << "Run on (" << info.num_cpus << " X " in PrintBasicContext()
46 << ((info.num_cpus > 1) ? "s" : "") << ")\n"; in PrintBasicContext()
53 Out << " (x" << (info.num_cpus / CInfo.num_sharing) << ")"; in PrintBasicContext()
/external/autotest/client/site_tests/platform_AesThroughput/
Dplatform_AesThroughput.py20 num_cpus = bin_utils.count_cpus()
21 logging.debug('Running using all cpus: %d' % num_cpus)
22 results = self.openssl_speed('aes-256-cbc', '-multi %d' % num_cpus)
/external/arm-trusted-firmware/services/std_svc/spm_mm/
Dspm_mm_setup.c234 assert(sp_boot_info->num_cpus <= PLATFORM_CORE_COUNT); in spm_sp_setup()
238 (sp_boot_info->num_cpus * sizeof(*sp_mp_info)))); in spm_sp_setup()
241 sp_boot_info->num_cpus * sizeof(*sp_mp_info)); in spm_sp_setup()
249 for (unsigned int index = 0; index < sp_boot_info->num_cpus; index++) { in spm_sp_setup()
/external/llvm-project/libcxx/utils/google-benchmark/src/
Dreporter.cc45 Out << "Run on (" << info.num_cpus << " X " in PrintBasicContext()
47 << ((info.num_cpus > 1) ? "s" : "") << ")\n"; in PrintBasicContext()
54 Out << " (x" << (info.num_cpus / CInfo.num_sharing) << ")"; in PrintBasicContext()
/external/google-benchmark/src/
Dreporter.cc45 Out << "Run on (" << info.num_cpus << " X " in PrintBasicContext()
47 << ((info.num_cpus > 1) ? "s" : "") << ")\n"; in PrintBasicContext()
54 Out << " (x" << (info.num_cpus / CInfo.num_sharing) << ")"; in PrintBasicContext()
/external/libcxx/utils/google-benchmark/src/
Dreporter.cc45 Out << "Run on (" << info.num_cpus << " X " in PrintBasicContext()
47 << ((info.num_cpus > 1) ? "s" : "") << ")\n"; in PrintBasicContext()
54 Out << " (x" << (info.num_cpus / CInfo.num_sharing) << ")"; in PrintBasicContext()
/external/rust/crates/tokio/src/loom/std/
Dmod.rs86 pub(crate) fn num_cpus() -> usize { in num_cpus() function
87 usize::max(1, num_cpus::get()) in num_cpus()
91 pub(crate) fn num_cpus() -> usize { in num_cpus() function

123456