From 676c6b88a0f146d0e69b5a0b3a11f7441199f481 Mon Sep 17 00:00:00 2001 From: Jordan Carlin Date: Tue, 23 Jul 2024 22:57:53 -0700 Subject: [PATCH] Automatically determine number of threads to use in wally-tool-chain-install --- bin/wally-tool-chain-install.sh | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/bin/wally-tool-chain-install.sh b/bin/wally-tool-chain-install.sh index cf86f0427..3b6903299 100755 --- a/bin/wally-tool-chain-install.sh +++ b/bin/wally-tool-chain-install.sh @@ -29,11 +29,8 @@ ## and limitations under the License. ################################################################################################ -# MODIFY FOR YOUR MACHINE # Increasing NUM_THREADS will speed up parallel compilation of the tools -#NUM_THREADS=2 # for low memory machines > 16GiB -NUM_THREADS=8 # for >= 32GiB -#NUM_THREADS=16 # for >= 64GiB +NUM_THREADS=$(nproc --ignore 1) # One less than the total number of threads # Colors BOLD='\033[1m'