Home
last modified time | relevance | path

Searched refs:process_cpu_count (Results 1 – 22 of 22) sorted by relevance

/external/python/cpython3/Lib/test/libregrtest/
Dutils.py668 process_cpu_count = os.process_cpu_count() # type: ignore[attr-defined]
669 if process_cpu_count and process_cpu_count != cpu_count:
Dmain.py516 self.num_workers = (os.process_cpu_count() or 1) + 2 # type: ignore[attr-defined]
/external/python/cpython3/Lib/test/test_concurrent_futures/
Dtest_thread_pool.py28 expected = min(32, (os.process_cpu_count() or 1) + 4)
/external/python/cpython3/Tools/freeze/test/
Dfreeze.py140 cores = os.process_cpu_count()
/external/python/cpython3/Lib/concurrent/futures/
Dthread.py146 max_workers = min(32, (os.process_cpu_count() or 1) + 4)
Dprocess.py654 self._max_workers = os.process_cpu_count() or 1
/external/python/cpython3/Lib/test/
Dtest_cmd_line.py991 self.assertEqual(self.res2int(res), (os.cpu_count(), os.process_cpu_count()))
993 self.assertEqual(self.res2int(res), (os.cpu_count(), os.process_cpu_count()))
995 self.assertEqual(self.res2int(res), (os.cpu_count(), os.process_cpu_count()))
Dtest_os.py4541 cpus = os.process_cpu_count()
4548 affinity1 = os.process_cpu_count()
4562 affinity2 = os.process_cpu_count()
/external/python/cpython3/Tools/wasm/
Dwasi.py8 from os import process_cpu_count as cpu_count
Dwasm_build.py522 cpu_count = os.process_cpu_count()
/external/python/cpython3/Lib/
Dos.py1173 def process_cpu_count(): function
1183 process_cpu_count = cpu_count variable
/external/python/cpython3/Doc/library/
Dconcurrent.futures.rst193 ``min(32, (os.process_cpu_count() or 1) + 4)``.
250 given, it will default to :func:`os.process_cpu_count`.
310 *max_workers* uses :func:`os.process_cpu_count` by default, instead of
Dcompileall.rst93 If ``0`` is used, then the result of :func:`os.process_cpu_count`
Dmultiprocessing.rst1013 :func:`os.process_cpu_count` (or ``len(os.sched_getaffinity(0))``).
1020 :func:`os.process_cpu_count`
2226 ``None`` then the number returned by :func:`os.process_cpu_count` is used.
2262 *processes* uses :func:`os.process_cpu_count` by default, instead of
2790 ``None`` then the number returned by :func:`os.process_cpu_count` is used.
Dos.rst5469 See also the :func:`process_cpu_count` function.
5513 The :func:`process_cpu_count` function can be used to get the number of
5532 .. function:: process_cpu_count()
5542 :func:`process_cpu_count` returns the overridden value *n*.
/external/python/cpython3/Tools/ssl/
Dmultissltests.py157 jobs = os.process_cpu_count()
/external/python/cpython3/Lib/multiprocessing/
Dpool.py203 processes = os.process_cpu_count() or 1
/external/python/cpython3/Modules/_decimal/tests/
Ddeccheck.py1304 N = os.process_cpu_count()
/external/python/cpython3/Doc/whatsnew/
D3.13.rst758 :func:`os.process_cpu_count` instead of :func:`os.cpu_count`.
766 :func:`os.process_cpu_count` instead of :func:`os.cpu_count`.
1018 :func:`os.process_cpu_count` instead of :func:`os.cpu_count`.
1025 * Add :func:`~os.process_cpu_count` function to get the number
1029 * :func:`~os.cpu_count` and :func:`~os.process_cpu_count` can be overridden
/external/python/cpython3/Doc/using/
Dcmdline.rst601 :func:`os.process_cpu_count`, and :func:`multiprocessing.cpu_count`.
1170 values of :func:`os.cpu_count` and :func:`os.process_cpu_count`.
/external/python/cpython3/Misc/NEWS.d/
D3.13.0a1.rst287 results of :func:`os.cpu_count` and :func:`os.process_cpu_count`. This
2029 Replace :func:`os.cpu_count` with :func:`os.process_cpu_count` to select the
2203 Add :func:`os.process_cpu_count` function to get the number of logical CPUs
/external/python/cpython3/Doc/c-api/
Dinit_config.rst895 :func:`os.process_cpu_count`, and :func:`multiprocessing.cpu_count`.