Home
last modified time | relevance | path

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

123

/external/u-boot/arch/x86/cpu/
Dmp_init.c33 static int num_cpus; variable
216 static int load_sipi_vector(atomic_t **ap_countp, int num_cpus) in load_sipi_vector() argument
245 size = params->stack_size * num_cpus; in load_sipi_vector()
379 int num_aps = num_cpus - 1; in bsp_do_flight_plan()
514 num_cpus = cpu_get_count(cpu); in mp_init()
515 if (num_cpus < 0) { in mp_init()
516 debug("Cannot get number of CPUs: err=%d\n", num_cpus); in mp_init()
517 return num_cpus; in mp_init()
520 if (num_cpus < 2) in mp_init()
523 ret = check_cpu_devices(num_cpus); in mp_init()
[all …]
/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()
Dgrpc_testlib.cc42 int num_cpus = 1; in MakeTestCluster() local
46 num_cpus = iter->second; in MakeTestCluster()
64 strings::StrCat("--num_cpus=", num_cpus), in MakeTestCluster()
/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_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_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_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_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_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_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()
Drun_cpuctl_latency_test.sh102 num_cpus=`tst_ncpus`
103 log2 $num_cpus;
/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/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()
Dsysinfo.cc209 bool CpuScalingEnabled(int num_cpus) { in CpuScalingEnabled() argument
211 if (num_cpus <= 0) return false; in CpuScalingEnabled()
217 for (int cpu = 0; cpu < num_cpus; ++cpu) { in CpuScalingEnabled()
637 : num_cpus(GetNumCPUs()), in CPUInfo()
640 scaling_enabled(CpuScalingEnabled(num_cpus)), in CPUInfo()
/external/ltp/testcases/kernel/syscalls/ptrace/
Dptrace07.c95 int num_cpus = tst_ncpus(); in do_test() local
107 for (i = 0; i < num_cpus; i++) { in do_test()
181 for (i = 0; i < num_cpus; i++) { in do_test()
/external/perfetto/tools/skippy/
Dskippy.cc39 static size_t num_cpus = static_cast<size_t>(sysconf(_SC_NPROCESSORS_CONF)); in SkippyMain() local
50 cpu = (cpu + 1) % num_cpus; in SkippyMain()
/external/tensorflow/tensorflow/core/distributed_runtime/
Drpcbench_test.cc56 int num_cpus = 1; in MakeGRPCCluster() local
60 num_cpus = iter->second; in MakeGRPCCluster()
69 worker_threads->Schedule([worker_idx, n, num_cpus, num_gpus, &port] { in MakeGRPCCluster()
83 (*config->mutable_device_count())["CPU"] = num_cpus; in MakeGRPCCluster()
/external/tensorflow/tensorflow/python/grappler/
Dgraph_placer_test.py62 def _buildCluster(num_cpus=1, num_gpus=1): argument
85 assert num_cpus > 0
93 for i in range(num_cpus):
/external/autotest/client/site_tests/hardware_Interrupt/
Dhardware_Interrupt.py34 num_cpus = len(lines.pop(0).split())
38 count = sum(map(int, fields[1:1 + num_cpus]))
/external/perfetto/tools/dump_ftrace_stats/
Dmain.cc44 static size_t num_cpus = static_cast<size_t>(sysconf(_SC_NPROCESSORS_CONF)); in NumberOfCpus() local
45 return num_cpus; in NumberOfCpus()
/external/perfetto/src/traced/probes/ftrace/
Dftrace_controller.cc227 const size_t num_cpus = ftrace_procfs_->NumberOfCpus(); in DrainCPUs() local
228 PERFETTO_DCHECK(cpu_readers_.size() == num_cpus); in DrainCPUs()
237 if (cur_flush_request_id_ && thread_sync_.flush_acks.count() >= num_cpus) { in DrainCPUs()
244 for (size_t cpu = 0; cpu < num_cpus; cpu++) { in DrainCPUs()
/external/google-breakpad/src/processor/
Dmicrodump.cc207 string num_cpus; in Microdump() local
215 os_tokens >> num_cpus; in Microdump()
221 system_info_->cpu_count = HexStrToL<uint8_t>(num_cpus); in Microdump()

123