Enable parallelism by default#278
Conversation
If _SC_NPROCESSORS_ONLN is defined in <unistd.h> (as is the case in Solaris, Linux, and the four major BSDs), use it to set the default parallelism value to the number of available cores.
|
There are still quite some tests which are flaky with parallelism enabled. With bricoler I've been trying to get test runs clean with 16-way parallelism. It's getting close, but there's more to do. |
We can mark those |
Ok, but that has to happen before this change. |
Please keep in mind that this tool is used on multiple versions of FreeBSD and other OSes as well, and not all test suites that leverage this are in tree. You're better off changing the config in :main, instead of making this change globally. |
If
_SC_NPROCESSORS_ONLNis defined in<unistd.h>(as is the case in Solaris, Linux, and the four major BSDs), use it to set the default parallelism value to the number of available cores.