Closed ttikkanen closed 3 years ago
It's using os.cpu_count()
and using 4
as a fallback.
From testing it on an Intel machine, it seems that os.cpu_count()
returns the number of logical cores, e.g. 8 for a 4-core CPU with hyperthreading (so 8 threads).
Executor documentation states about
--parallel-workers
However, it doesn't say what is the logic. Will it be equal to number of CPU cores or threads? Or perhaps N-1 (preferable not to overload system).
https://colcon.readthedocs.io/en/released/reference/executor-arguments.html?highlight=parallel-workers#executor-arguments