diff --git a/paddle/scripts/paddle_build.sh b/paddle/scripts/paddle_build.sh index ec07565c5af6c7ba79c15d9a335313775719c682..d8afcebe067188805b2b984b5577c6ae9e8c821c 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