From 37671c6f80efa1770d1a3cd92595345dcd4c13a0 Mon Sep 17 00:00:00 2001 From: Jordan Jacobelli Date: Tue, 21 May 2024 16:21:58 +0200 Subject: [PATCH] Set default value for PARALLEL_LEVEL to nproc Signed-off-by: Jordan Jacobelli --- build.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/build.sh b/build.sh index 6ef7cb81..21563a34 100755 --- a/build.sh +++ b/build.sh @@ -42,7 +42,7 @@ BUILD_ALL_GPU_ARCH=0 # FIXME: if INSTALL_PREFIX is not set, check PREFIX, then check # CONDA_PREFIX, but there is no fallback from there! INSTALL_PREFIX=${INSTALL_PREFIX:=${PREFIX:=${CONDA_PREFIX}}} -PARALLEL_LEVEL=${PARALLEL_LEVEL:=""} +PARALLEL_LEVEL=${PARALLEL_LEVEL:=$(nproc)} function hasArg { (( ${NUMARGS} != 0 )) && (echo " ${ARGS} " | grep -q " $1 ")