From 75a13114009fa427d41fb7c5c11991b6b1597a2b Mon Sep 17 00:00:00 2001 From: tianshuo78520a <707759223@qq.com> Date: Tue, 11 Aug 2020 16:11:11 +0800 Subject: [PATCH] Fix inference CI bug (#26080) * Fix inference bug * fix inference lib --- paddle/scripts/paddle_build.sh | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/paddle/scripts/paddle_build.sh b/paddle/scripts/paddle_build.sh index 14607c04653..4efcec7a41d 100755 --- a/paddle/scripts/paddle_build.sh +++ b/paddle/scripts/paddle_build.sh @@ -1267,9 +1267,13 @@ EOF ./run.sh ${PADDLE_ROOT} ${WITH_MKL:-ON} ${WITH_GPU:-OFF} ${INFERENCE_DEMO_INSTALL_DIR} \ ${TENSORRT_INCLUDE_DIR:-/usr/local/TensorRT/include} \ ${TENSORRT_LIB_DIR:-/usr/local/TensorRT/lib} + EXIT_CODE=$? fluid_endTime_s=`date +%s` echo "test_fluid_lib Total Time: $[ $fluid_endTime_s - $fluid_startTime_s ]s" ./clean.sh + if [[ "$EXIT_CODE" != "0" ]]; then + exit 8; + fi } function test_fluid_lib_train() { @@ -1281,9 +1285,13 @@ EOF fluid_train_startTime_s=`date +%s` cd ${PADDLE_ROOT}/paddle/fluid/train/demo ./run.sh ${PADDLE_ROOT} ${WITH_MKL:-ON} + EXIT_CODE=$? fluid_train_endTime_s=`date +%s` echo "test_fluid_lib_train Total Time: $[ $fluid_train_endTime_s - $fluid_train_startTime_s ]s" ./clean.sh + if [[ "$EXIT_CODE" != "0" ]]; then + exit 8; + fi } function build_document_preview() { @@ -1387,7 +1395,7 @@ function main() { test_inference) gen_fluid_lib ${parallel_number} test_fluid_lib - test_fluid_lib_train + #test_fluid_lib_train ;; test_train) gen_fluid_lib ${parallel_number} -- GitLab