X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;f=fast_make.sh;h=38d94a187816b9820e034c420a9a910976b88886;hb=be766a1931edb662e822a835a0e127c942d1a61e;hp=2007b0bec62a1dcae2a09ede2483f479a81f40f4;hpb=ea61e98aed4316bda8b156aea5980b08eaf4302b;p=clitk.git diff --git a/fast_make.sh b/fast_make.sh index 2007b0b..38d94a1 100755 --- a/fast_make.sh +++ b/fast_make.sh @@ -27,7 +27,7 @@ then sleep 1 make -j${cpus} else #use all the available computing power by default - cpus=$(( $(cat /proc/cpuinfo | grep -c ^processor) + 2 )) + cpus=$(( $(cat /proc/cpuinfo | grep -c ^processor) + 0 )) echo "Building with ${cpus} cpus..." fi @@ -68,5 +68,6 @@ make_pid=$(jobs -p %nice) # sleep 1 #done #rm memory_exhausted_lock 2>>/dev/null +wait echo Done! echo