X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;f=fast_make.sh;h=deb86d6719df9d4812595af215fddc0c89005d09;hb=61d57d331b0459560f6714c0c6bb8298868a662e;hp=9309c87faaa5dfe660dd17662685d4be2b24860e;hpb=9284f78523ef4469d086d04c1bcd791ce00575d1;p=clitk.git diff --git a/fast_make.sh b/fast_make.sh index 9309c87..deb86d6 100755 --- a/fast_make.sh +++ b/fast_make.sh @@ -1,8 +1,9 @@ #!/bin/bash vv_dir=$(dirname $(readlink -e $(which $0))) -echo vv directory: $vv_dir +echo clitk3 directory: $vv_dir cd ${vv_dir}/build + function handle_exit { rm mem_use 2>>/dev/null @@ -26,7 +27,8 @@ then sleep 1 make -j${cpus} else #use all the available computing power by default - cpus=$(( $(cat /proc/cpuinfo | grep -c ^processor) + 0 )) + cpus=$(( $(cat /proc/cpuinfo | grep -c ^processor) + 2 )) + echo "Building with ${cpus} cpus..." fi nice -n12 ionice -c3 make -j ${cpus} $@ &