diff options
author | Karel Kočí <cynerd@email.cz> | 2020-04-17 12:27:11 +0200 |
---|---|---|
committer | Karel Kočí <cynerd@email.cz> | 2020-04-17 12:29:39 +0200 |
commit | ba4b4a27138239ec32b1bf643b2763c0243aa8f8 (patch) | |
tree | ad7376d11dcfa5b4bd3deaf987c7c391e06d3ff0 /templates | |
parent | 81e79116d574e06442b358cbab0928641ff42d36 (diff) | |
download | laminar-cnf-ba4b4a27138239ec32b1bf643b2763c0243aa8f8.tar.gz laminar-cnf-ba4b4a27138239ec32b1bf643b2763c0243aa8f8.tar.bz2 laminar-cnf-ba4b4a27138239ec32b1bf643b2763c0243aa8f8.zip |
Run on all CPUs but litmit load to number of CPUs
This at maximum spawns twice amount of jobs as there are CPUs on system.
Diffstat (limited to 'templates')
-rwxr-xr-x | templates/turris.run | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/templates/turris.run b/templates/turris.run index ad6bd8e..359a425 100755 --- a/templates/turris.run +++ b/templates/turris.run @@ -2,8 +2,8 @@ # vim: ft=sh . "$(dirname "$(readlink -f "$0")")/../job.common" ################################################### -parallel=-j4 -make="make -j4 IS_TTY=1 BUILD_LOG=1" +parallel=-j$(($(nproc) * 2)) -l$(nproc) +make="make $paralel IS_TTY=1 BUILD_LOG=1" if [ "$V" -ge 1 ]; then parallel=-j1 make="make -j1 IS_TTY=1 BUILD_LOG=1 V=99" |