Searched refs:process_cpu_count (Results 1 – 22 of 22) sorted by relevance
/external/python/cpython3/Lib/test/libregrtest/ |
D | utils.py | 668 process_cpu_count = os.process_cpu_count() # type: ignore[attr-defined] 669 if process_cpu_count and process_cpu_count != cpu_count:
|
D | main.py | 516 self.num_workers = (os.process_cpu_count() or 1) + 2 # type: ignore[attr-defined]
|
/external/python/cpython3/Lib/test/test_concurrent_futures/ |
D | test_thread_pool.py | 28 expected = min(32, (os.process_cpu_count() or 1) + 4)
|
/external/python/cpython3/Tools/freeze/test/ |
D | freeze.py | 140 cores = os.process_cpu_count()
|
/external/python/cpython3/Lib/concurrent/futures/ |
D | thread.py | 146 max_workers = min(32, (os.process_cpu_count() or 1) + 4)
|
D | process.py | 654 self._max_workers = os.process_cpu_count() or 1
|
/external/python/cpython3/Lib/test/ |
D | test_cmd_line.py | 991 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()))
|
D | test_os.py | 4541 cpus = os.process_cpu_count() 4548 affinity1 = os.process_cpu_count() 4562 affinity2 = os.process_cpu_count()
|
/external/python/cpython3/Tools/wasm/ |
D | wasi.py | 8 from os import process_cpu_count as cpu_count
|
D | wasm_build.py | 522 cpu_count = os.process_cpu_count()
|
/external/python/cpython3/Lib/ |
D | os.py | 1173 def process_cpu_count(): function 1183 process_cpu_count = cpu_count variable
|
/external/python/cpython3/Doc/library/ |
D | concurrent.futures.rst | 193 ``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
|
D | compileall.rst | 93 If ``0`` is used, then the result of :func:`os.process_cpu_count`
|
D | multiprocessing.rst | 1013 :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.
|
D | os.rst | 5469 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/ |
D | multissltests.py | 157 jobs = os.process_cpu_count()
|
/external/python/cpython3/Lib/multiprocessing/ |
D | pool.py | 203 processes = os.process_cpu_count() or 1
|
/external/python/cpython3/Modules/_decimal/tests/ |
D | deccheck.py | 1304 N = os.process_cpu_count()
|
/external/python/cpython3/Doc/whatsnew/ |
D | 3.13.rst | 758 :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/ |
D | cmdline.rst | 601 :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/ |
D | 3.13.0a1.rst | 287 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/ |
D | init_config.rst | 895 :func:`os.process_cpu_count`, and :func:`multiprocessing.cpu_count`.
|