/dports/math/openturns/openturns-1.18/python/src/ |
H A D | Function.i | 215 def _exec_sample_multiprocessing_func(func, n_cpus): 235 p = Pool(processes=n_cpus) 265 p = Pool(processes=n_cpus) 280 if nsim < n_cpus: 395 if n_cpus is not None: 396 if not isinstance(n_cpus, int): 398 if n_cpus == -1: 401 if n_cpus <= 1: 402 n_cpus = None 414 if n_cpus is not None: [all …]
|
/dports/x11/mate-applets/mate-applets-1.26.0/cpufreq/src/ |
H A D | cpufreq-utils.c | 47 static guint n_cpus = 0; in cpufreq_utils_get_n_cpus() local 49 if (n_cpus > 0) in cpufreq_utils_get_n_cpus() 50 return n_cpus; in cpufreq_utils_get_n_cpus() 52 len = sizeof (n_cpus); in cpufreq_utils_get_n_cpus() 57 return n_cpus; in cpufreq_utils_get_n_cpus() 65 static guint n_cpus = 0; in cpufreq_utils_get_n_cpus() local 67 if (n_cpus > 0) in cpufreq_utils_get_n_cpus() 68 return n_cpus; in cpufreq_utils_get_n_cpus() 79 n_cpus = (guint)mcpu; in cpufreq_utils_get_n_cpus() 94 n_cpus = (guint)mcpu; in cpufreq_utils_get_n_cpus() [all …]
|
/dports/devel/distcc/distcc-3.3.5/src/ |
H A D | dparent.c | 99 int n_cpus; in dcc_standalone_server() local 112 if (dcc_ncpus(&n_cpus) == 0) in dcc_standalone_server() 113 rs_log_info("%d CPU%s online on this server", n_cpus, n_cpus == 1 ? "" : "s"); in dcc_standalone_server() 121 dcc_max_kids = 2 + n_cpus; in dcc_standalone_server() 144 if (!(avahi = dcc_zeroconf_register((uint16_t) arg_port, n_cpus, dcc_max_kids))) in dcc_standalone_server()
|
H A D | zeroconf-reg.c | 54 int n_cpus; member 79 snprintf(cpus, sizeof(cpus), "cpus=%i", ctx->n_cpus); in register_stuff() 229 void* dcc_zeroconf_register(uint16_t port, int n_cpus, int n_jobs) { in dcc_zeroconf_register() argument 240 ctx->n_cpus = n_cpus; in dcc_zeroconf_register()
|
/dports/science/afni/afni-AFNI_21.3.16/src/pkundu/meica.libs/mdp/parallel/ |
H A D | scheduling.py | 172 n_cpus = os.sysconf("SC_NPROCESSORS_ONLN") 173 if isinstance(n_cpus, int) and n_cpus > 0: 174 return n_cpus 180 n_cpus = int(os.environ["NUMBER_OF_PROCESSORS"]) 181 if n_cpus > 0: 182 return n_cpus
|
/dports/science/py-mdp/MDP-3.5/mdp/parallel/ |
H A D | scheduling.py | 175 n_cpus = os.sysconf("SC_NPROCESSORS_ONLN") 176 if isinstance(n_cpus, int) and n_cpus > 0: 177 return n_cpus 183 n_cpus = int(os.environ["NUMBER_OF_PROCESSORS"]) 184 if n_cpus > 0: 185 return n_cpus
|
/dports/math/openturns/openturns-1.18/python/test/ |
H A D | t_PythonFunction_multiprocessing.py | 19 n_cpus = multiprocessing.cpu_count() variable 21 myfun = ot.PythonFunction(1, 1, myfunPython, n_cpus=n_cpus)
|
/dports/multimedia/libv4l/linux-5.13-rc2/drivers/gpu/drm/i915/gem/selftests/ |
H A D | i915_gem_object_blt.c | 200 unsigned int n_cpus; member 235 max = div_u64(max, thread->n_cpus); in igt_fill_blt_thread() 353 max = div_u64(max, thread->n_cpus); in igt_copy_blt_thread() 466 unsigned int n_cpus, i; in igt_threaded_blt() local 470 n_cpus = num_online_cpus() + 1; in igt_threaded_blt() 472 tsk = kcalloc(n_cpus, sizeof(struct task_struct *), GFP_KERNEL); in igt_threaded_blt() 476 thread = kcalloc(n_cpus, sizeof(struct igt_thread_arg), GFP_KERNEL); in igt_threaded_blt() 494 for (i = 0; i < n_cpus; ++i) { in igt_threaded_blt() 498 thread[i].n_cpus = n_cpus; in igt_threaded_blt() 513 for (i = 0; i < n_cpus; ++i) { in igt_threaded_blt()
|
/dports/multimedia/v4l-utils/linux-5.13-rc2/drivers/gpu/drm/i915/gem/selftests/ |
H A D | i915_gem_object_blt.c | 200 unsigned int n_cpus; member 235 max = div_u64(max, thread->n_cpus); in igt_fill_blt_thread() 353 max = div_u64(max, thread->n_cpus); in igt_copy_blt_thread() 466 unsigned int n_cpus, i; in igt_threaded_blt() local 470 n_cpus = num_online_cpus() + 1; in igt_threaded_blt() 472 tsk = kcalloc(n_cpus, sizeof(struct task_struct *), GFP_KERNEL); in igt_threaded_blt() 476 thread = kcalloc(n_cpus, sizeof(struct igt_thread_arg), GFP_KERNEL); in igt_threaded_blt() 494 for (i = 0; i < n_cpus; ++i) { in igt_threaded_blt() 498 thread[i].n_cpus = n_cpus; in igt_threaded_blt() 513 for (i = 0; i < n_cpus; ++i) { in igt_threaded_blt()
|
/dports/multimedia/v4l_compat/linux-5.13-rc2/drivers/gpu/drm/i915/gem/selftests/ |
H A D | i915_gem_object_blt.c | 200 unsigned int n_cpus; member 235 max = div_u64(max, thread->n_cpus); in igt_fill_blt_thread() 353 max = div_u64(max, thread->n_cpus); in igt_copy_blt_thread() 466 unsigned int n_cpus, i; in igt_threaded_blt() local 470 n_cpus = num_online_cpus() + 1; in igt_threaded_blt() 472 tsk = kcalloc(n_cpus, sizeof(struct task_struct *), GFP_KERNEL); in igt_threaded_blt() 476 thread = kcalloc(n_cpus, sizeof(struct igt_thread_arg), GFP_KERNEL); in igt_threaded_blt() 494 for (i = 0; i < n_cpus; ++i) { in igt_threaded_blt() 498 thread[i].n_cpus = n_cpus; in igt_threaded_blt() 513 for (i = 0; i < n_cpus; ++i) { in igt_threaded_blt()
|
/dports/databases/percona56-server/percona-server-5.6.51-91.0/extra/libevent/ |
H A D | event_iocp.c | 176 event_iocp_port_launch_(int n_cpus) in event_iocp_port_launch_() argument 187 if (n_cpus <= 0) in event_iocp_port_launch_() 188 n_cpus = N_CPUS_DEFAULT; in event_iocp_port_launch_() 189 port->n_threads = n_cpus * 2; in event_iocp_port_launch_() 195 n_cpus); in event_iocp_port_launch_()
|
/dports/net-mgmt/lldpd/lldpd-1.0.8/libevent/ |
H A D | event_iocp.c | 176 event_iocp_port_launch_(int n_cpus) in event_iocp_port_launch_() argument 187 if (n_cpus <= 0) in event_iocp_port_launch_() 188 n_cpus = N_CPUS_DEFAULT; in event_iocp_port_launch_() 189 port->n_threads = n_cpus * 2; in event_iocp_port_launch_() 195 n_cpus); in event_iocp_port_launch_()
|
/dports/net/netatalk3/netatalk-3.1.12/libevent/ |
H A D | event_iocp.c | 172 event_iocp_port_launch(int n_cpus) in event_iocp_port_launch() argument 183 if (n_cpus <= 0) in event_iocp_port_launch() 184 n_cpus = N_CPUS_DEFAULT; in event_iocp_port_launch() 185 port->n_threads = n_cpus * 2; in event_iocp_port_launch() 191 n_cpus); in event_iocp_port_launch()
|
/dports/net/ntp/ntp-4.2.8p15/sntp/libevent/ |
H A D | event_iocp.c | 176 event_iocp_port_launch_(int n_cpus) in event_iocp_port_launch_() argument 187 if (n_cpus <= 0) in event_iocp_port_launch_() 188 n_cpus = N_CPUS_DEFAULT; in event_iocp_port_launch_() 189 port->n_threads = n_cpus * 2; in event_iocp_port_launch_() 195 n_cpus); in event_iocp_port_launch_()
|
/dports/databases/percona56-client/percona-server-5.6.51-91.0/extra/libevent/ |
H A D | event_iocp.c | 176 event_iocp_port_launch_(int n_cpus) in event_iocp_port_launch_() argument 187 if (n_cpus <= 0) in event_iocp_port_launch_() 188 n_cpus = N_CPUS_DEFAULT; in event_iocp_port_launch_() 189 port->n_threads = n_cpus * 2; in event_iocp_port_launch_() 195 n_cpus); in event_iocp_port_launch_()
|
/dports/databases/percona-pam-for-mysql/percona-server-5.6.51-91.0/extra/libevent/ |
H A D | event_iocp.c | 176 event_iocp_port_launch_(int n_cpus) in event_iocp_port_launch_() argument 187 if (n_cpus <= 0) in event_iocp_port_launch_() 188 n_cpus = N_CPUS_DEFAULT; in event_iocp_port_launch_() 189 port->n_threads = n_cpus * 2; in event_iocp_port_launch_() 195 n_cpus); in event_iocp_port_launch_()
|
/dports/databases/percona57-pam-for-mysql/percona-server-5.7.36-39/extra/libevent/libevent-2.1.11-stable/ |
H A D | event_iocp.c | 176 event_iocp_port_launch_(int n_cpus) in event_iocp_port_launch_() argument 187 if (n_cpus <= 0) in event_iocp_port_launch_() 188 n_cpus = N_CPUS_DEFAULT; in event_iocp_port_launch_() 189 port->n_threads = n_cpus * 2; in event_iocp_port_launch_() 195 n_cpus); in event_iocp_port_launch_()
|
/dports/www/firefox-esr/firefox-91.8.0/ipc/chromium/src/third_party/libevent/ |
H A D | event_iocp.c | 176 event_iocp_port_launch_(int n_cpus) in event_iocp_port_launch_() argument 187 if (n_cpus <= 0) in event_iocp_port_launch_() 188 n_cpus = N_CPUS_DEFAULT; in event_iocp_port_launch_() 189 port->n_threads = n_cpus * 2; in event_iocp_port_launch_() 195 n_cpus); in event_iocp_port_launch_()
|
/dports/lang/spidermonkey78/firefox-78.9.0/ipc/chromium/src/third_party/libevent/ |
H A D | event_iocp.c | 176 event_iocp_port_launch_(int n_cpus) in event_iocp_port_launch_() argument 187 if (n_cpus <= 0) in event_iocp_port_launch_() 188 n_cpus = N_CPUS_DEFAULT; in event_iocp_port_launch_() 189 port->n_threads = n_cpus * 2; in event_iocp_port_launch_() 195 n_cpus); in event_iocp_port_launch_()
|
/dports/databases/mysqlwsrep57-server/mysql-wsrep-wsrep_5.7.35-25.27/extra/libevent/libevent-2.1.11-stable/ |
H A D | event_iocp.c | 176 event_iocp_port_launch_(int n_cpus) in event_iocp_port_launch_() argument 187 if (n_cpus <= 0) in event_iocp_port_launch_() 188 n_cpus = N_CPUS_DEFAULT; in event_iocp_port_launch_() 189 port->n_threads = n_cpus * 2; in event_iocp_port_launch_() 195 n_cpus); in event_iocp_port_launch_()
|
/dports/databases/xtrabackup/percona-xtrabackup-2.4.21/extra/libevent/libevent-2.1.11-stable/ |
H A D | event_iocp.c | 176 event_iocp_port_launch_(int n_cpus) in event_iocp_port_launch_() argument 187 if (n_cpus <= 0) in event_iocp_port_launch_() 188 n_cpus = N_CPUS_DEFAULT; in event_iocp_port_launch_() 189 port->n_threads = n_cpus * 2; in event_iocp_port_launch_() 195 n_cpus); in event_iocp_port_launch_()
|
/dports/databases/percona57-server/percona-server-5.7.36-39/extra/libevent/libevent-2.1.11-stable/ |
H A D | event_iocp.c | 176 event_iocp_port_launch_(int n_cpus) in event_iocp_port_launch_() argument 187 if (n_cpus <= 0) in event_iocp_port_launch_() 188 n_cpus = N_CPUS_DEFAULT; in event_iocp_port_launch_() 189 port->n_threads = n_cpus * 2; in event_iocp_port_launch_() 195 n_cpus); in event_iocp_port_launch_()
|
/dports/databases/percona57-client/percona-server-5.7.36-39/extra/libevent/libevent-2.1.11-stable/ |
H A D | event_iocp.c | 176 event_iocp_port_launch_(int n_cpus) in event_iocp_port_launch_() argument 187 if (n_cpus <= 0) in event_iocp_port_launch_() 188 n_cpus = N_CPUS_DEFAULT; in event_iocp_port_launch_() 189 port->n_threads = n_cpus * 2; in event_iocp_port_launch_() 195 n_cpus); in event_iocp_port_launch_()
|
/dports/www/firefox/firefox-99.0/ipc/chromium/src/third_party/libevent/ |
H A D | event_iocp.c | 176 event_iocp_port_launch_(int n_cpus) in event_iocp_port_launch_() argument 187 if (n_cpus <= 0) in event_iocp_port_launch_() 188 n_cpus = N_CPUS_DEFAULT; in event_iocp_port_launch_() 189 port->n_threads = n_cpus * 2; in event_iocp_port_launch_() 195 n_cpus); in event_iocp_port_launch_()
|
/dports/net/openmpi/openmpi-4.1.1/opal/mca/event/libevent2022/libevent/ |
H A D | event_iocp.c | 175 event_iocp_port_launch(int n_cpus) in event_iocp_port_launch() argument 186 if (n_cpus <= 0) in event_iocp_port_launch() 187 n_cpus = N_CPUS_DEFAULT; in event_iocp_port_launch() 188 port->n_threads = n_cpus * 2; in event_iocp_port_launch() 194 n_cpus); in event_iocp_port_launch()
|