Skip to content

Commit d478e09

Browse files
committed
Merge branch 'develop' into EighOP
2 parents 3944f53 + 554771d commit d478e09

File tree

10 files changed

+937
-15
lines changed

10 files changed

+937
-15
lines changed

paddle/fluid/inference/api/demo_ci/run.sh

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@ TENSORRT_INCLUDE_DIR=$5 # TensorRT header file dir, default to /usr/local/Tensor
2323
TENSORRT_LIB_DIR=$6 # TensorRT lib file dir, default to /usr/local/TensorRT/lib
2424
MSVC_STATIC_CRT=$7
2525
inference_install_dir=${PADDLE_ROOT}/build/paddle_inference_install_dir
26+
WIN_DETECT=$(echo `uname` | grep "Win") # detect current platform
2627

2728
cd `dirname $0`
2829
current_dir=`pwd`
@@ -53,7 +54,11 @@ function download() {
5354
if [[ -e "${PREFIX}${dir_name}.tar.gz" ]]; then
5455
echo "${PREFIX}${dir_name}.tar.gz has been downloaded."
5556
else
56-
wget -q ${URL_ROOT}$dir_name.tar.gz
57+
if [ $WIN_DETECT != "" ]; then
58+
wget -q -Y off ${URL_ROOT}$dir_name.tar.gz
59+
else
60+
wget -q --no-proxy ${URL_ROOT}$dir_name.tar.gz
61+
fi
5762
tar xzf *.tar.gz
5863
fi
5964
cd ..

0 commit comments

Comments
 (0)