提交 69e0b98f 编写于 作者: G gongweibao 提交者: Tao Luo

Cleanup the debug lines in paddle_build.sh (#20631)

上级 8314e64a
...@@ -620,18 +620,14 @@ function card_test() { ...@@ -620,18 +620,14 @@ function card_test() {
done done
if [ ${TESTING_DEBUG_MODE:-OFF} == "ON" ] ; then if [ ${TESTING_DEBUG_MODE:-OFF} == "ON" ] ; then
if [[ $cardnumber == $CUDA_DEVICE_COUNT ]]; then if [[ $cardnumber == $CUDA_DEVICE_COUNT ]]; then
echo "ctest -I $i,,$NUM_PROC -R \"($testcases)\" -V &"
ctest -I $i,,$NUM_PROC -R "($testcases)" -V & ctest -I $i,,$NUM_PROC -R "($testcases)" -V &
else else
echo "env CUDA_VISIBLE_DEVICES=$cuda_list ctest -I $i,,$NUM_PROC -R \"($testcases)\" &"
env CUDA_VISIBLE_DEVICES=$cuda_list ctest -I $i,,$NUM_PROC -R "($testcases)" -V & env CUDA_VISIBLE_DEVICES=$cuda_list ctest -I $i,,$NUM_PROC -R "($testcases)" -V &
fi fi
else else
if [[ $cardnumber == $CUDA_DEVICE_COUNT ]]; then if [[ $cardnumber == $CUDA_DEVICE_COUNT ]]; then
echo "ctest -I $i,,$NUM_PROC -R \"($testcases)\" --output-on-failure &"
ctest -I $i,,$NUM_PROC -R "($testcases)" --output-on-failure & ctest -I $i,,$NUM_PROC -R "($testcases)" --output-on-failure &
else else
echo "env CUDA_VISIBLE_DEVICES=$cuda_list ctest -I $i,,$NUM_PROC -R \"($testcases)\" --output-on-failure &"
env CUDA_VISIBLE_DEVICES=$cuda_list ctest -I $i,,$NUM_PROC -R "($testcases)" --output-on-failure & env CUDA_VISIBLE_DEVICES=$cuda_list ctest -I $i,,$NUM_PROC -R "($testcases)" --output-on-failure &
fi fi
fi fi
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册