From 6d77b22281cc16ec20da0e9893e93524c8664a45 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'