From 1055c6b3e714b9fb7180c2c3ae3e33fd7f7f00c0 Mon Sep 17 00:00:00 2001 From: tianshuo78520a <707759223@qq.com> Date: Thu, 31 Mar 2022 17:13:49 +0800 Subject: [PATCH] reduce gpu example samplecode (#41189) --- paddle/scripts/paddle_build.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/paddle/scripts/paddle_build.sh b/paddle/scripts/paddle_build.sh index b9b2e87aeb..d1220e4537 100755 --- a/paddle/scripts/paddle_build.sh +++ b/paddle/scripts/paddle_build.sh @@ -2778,7 +2778,8 @@ function exec_samplecode_test() { if [ "$1" = "cpu" ] ; then python sampcd_processor.py cpu; example_error=$? elif [ "$1" = "gpu" ] ; then - python sampcd_processor.py --threads=16 gpu; example_error=$? + SAMPLE_CODE_EXEC_THREADS=${SAMPLE_CODE_EXEC_THREADS:-2} + python sampcd_processor.py --threads=${SAMPLE_CODE_EXEC_THREADS} gpu; example_error=$? fi if [ "$example_error" != "0" ];then echo "Code instance execution failed" >&2 -- GitLab