From 8b36af89b1f5625105b9a91dd293c7567a23cc97 Mon Sep 17 00:00:00 2001 From: Wang Huan Date: Tue, 15 Sep 2020 09:25:54 +0000 Subject: [PATCH] reduce make process priority, test=develop --- paddle/scripts/paddle_build.sh | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/paddle/scripts/paddle_build.sh b/paddle/scripts/paddle_build.sh index ec07565c5a..d8afcebe06 100755 --- a/paddle/scripts/paddle_build.sh +++ b/paddle/scripts/paddle_build.sh @@ -1158,15 +1158,15 @@ EOF case $LIB_TYPE in full) # Build full Paddle Python module. Will timeout without caching 'copy_paddle_pybind' first - make -j `nproc` framework_py_proto copy_paddle_pybind paddle_python + nice -n 19 make -j `nproc` framework_py_proto copy_paddle_pybind paddle_python ;; pybind) # Build paddle pybind library. Takes 49 minutes to build. Might timeout - make -j `nproc` copy_paddle_pybind + nice -n 19 make -j `nproc` copy_paddle_pybind ;; proto) # Even smaller library. - make -j `nproc` framework_py_proto + nice -n 19 make -j `nproc` framework_py_proto ;; *) exit 0 @@ -1375,8 +1375,8 @@ EOF startTime_s=`date +%s` set +e cmake .. -DWITH_DISTRIBUTE=OFF -DON_INFER=ON -DCUDA_ARCH_NAME=${CUDA_ARCH_NAME:-Auto};build_error=$? - make -j ${parallel_number} fluid_lib_dist;build_error=$? - make -j ${parallel_number} inference_lib_dist;build_error=$? + nice -n 19 make -j ${parallel_number} fluid_lib_dist;build_error=$? + nice -n 19 make -j ${parallel_number} inference_lib_dist;build_error=$? if [ "$build_error" != 0 ];then exit 7; fi -- GitLab