提交 8b36af89 编写于 作者: W Wang Huan

reduce make process priority, test=develop

上级 5892a731
......@@ -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
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册