diff --git a/tools/test_ci_model_benchmark.sh b/tools/test_ci_model_benchmark.sh index 657e03944a06e63a56d618101f5117a82ebcfc80..71498126165b451e1cca8fe579a07fd2cbc8bee4 100644 --- a/tools/test_ci_model_benchmark.sh +++ b/tools/test_ci_model_benchmark.sh @@ -29,8 +29,13 @@ function check_whl { git checkout . git checkout -b develop_base_pr upstream/$BRANCH [ $? -ne 0 ] && echo "install paddle failed." && exit 1 - cd build - make -j `nproc` + rm -rf ${PADDLE_ROOT}/build/Makefile ${PADDLE_ROOT}/build/CMakeCache.txt + cmake_change=`git diff --name-only upstream/$BRANCH | grep "cmake/external" || true` + if [ ${cmake_change} ];then + rm -rf ${PADDLE_ROOT}/build/third_party + fi + + bash -x paddle/scripts/paddle_build.sh build [ $? -ne 0 ] && echo "build paddle failed." && exit 1 unzip -q python/dist/*.whl -d /tmp/develop