From 5c0332714fffe4252aace465a5ef616c7d573bc0 Mon Sep 17 00:00:00 2001 From: Zhou Wei <52485244+zhouwei25@users.noreply.github.com> Date: Tue, 9 Feb 2021 22:51:40 +0800 Subject: [PATCH] fix bug of Linux UT parallel level (#30971) --- paddle/scripts/paddle_build.sh | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/paddle/scripts/paddle_build.sh b/paddle/scripts/paddle_build.sh index 56d7c174993..9ca426ae029 100755 --- a/paddle/scripts/paddle_build.sh +++ b/paddle/scripts/paddle_build.sh @@ -995,19 +995,20 @@ function card_test() { fi testcases=$1 + parallel_level_base=${CTEST_PARALLEL_LEVEL:-1} if (( $# > 1 )); then cardnumber=$2 if (( $cardnumber > $CUDA_DEVICE_COUNT )); then cardnumber=$CUDA_DEVICE_COUNT fi if (( $# > 2 )); then - parallel_job=$3 + parallel_job=`expr $3 \* $parallel_level_base` else - parallel_job=1 + parallel_job=$parallel_level_base fi else cardnumber=$CUDA_DEVICE_COUNT - parallel_job=1 + parallel_job=$parallel_level_base fi if [[ "$testcases" == "" ]]; then -- GitLab