Skip to content

Commit 8cbb49c

Browse files
committed
rm space
2 parents e97645c + be1f058 commit 8cbb49c

File tree

1,503 files changed

+61894
-15659
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

1,503 files changed

+61894
-15659
lines changed

.gitignore

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -25,12 +25,3 @@ third_party/
2525

2626
# clion workspace.
2727
cmake-build-*
28-
29-
# generated while compiling
30-
paddle/pybind/pybind.h
31-
CMakeFiles
32-
cmake_install.cmake
33-
paddle/.timestamp
34-
python/paddlepaddle.egg-info/
35-
paddle/fluid/pybind/pybind.h
36-
python/paddle/version.py

.pre-commit-config.yaml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
repos:
12
- repo: https://github.com/Lucas-C/pre-commit-hooks.git
23
sha: v1.0.1
34
hooks:
@@ -25,6 +26,14 @@
2526
entry: bash ./.clang_format.hook -i
2627
language: system
2728
files: \.(c|cc|cxx|cpp|cu|h|hpp|hxx|proto)$
29+
- repo: local
30+
hooks:
31+
- id: cpplint-cpp-source
32+
name: cpplint
33+
description: Check C++ code style using cpplint.py.
34+
entry: bash ./tools/codestyle/cpplint_pre_commit.hook
35+
language: system
36+
files: \.(c|cc|cxx|cpp|cu|h|hpp|hxx)$
2837
- repo: https://github.com/PaddlePaddle/pre-commit-golang
2938
sha: 8337620115c25ff8333f1b1a493bd031049bd7c0
3039
hooks:

.travis.yml

Lines changed: 7 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -12,51 +12,28 @@ services:
1212
os:
1313
- linux
1414
env:
15-
- JOB=build_doc
15+
- JOB=doc
1616
- JOB=check_style
1717
- JOB=build_android
1818
addons:
19-
apt:
20-
packages:
21-
- gcc-4.8
22-
- g++-4.8
23-
- git
24-
- build-essential
25-
- python
26-
- python-pip
27-
- python2.7-dev
28-
- python-wheel
29-
- libboost-dev
30-
- curl
31-
- swig
32-
- graphviz
33-
- clang-format-3.8
34-
- automake
35-
- libtool
36-
- ccache
37-
ssh_known_hosts: 52.76.173.135
19+
ssh_known_hosts: 13.229.163.131
3820
before_install:
39-
- if [[ "$JOB" == "check_style" ]]; then sudo ln -s /usr/bin/clang-format-3.8 /usr/bin/clang-format; fi
40-
# Paddle is using protobuf 3.1 currently. Protobuf 3.2 breaks the compatibility. So we specify the python
41-
# protobuf version.
42-
- sudo pip install -r $TRAVIS_BUILD_DIR/python/requirements.txt
43-
- sudo pip install wheel sphinx==1.5.6 recommonmark sphinx-rtd-theme==0.1.9 virtualenv pre-commit LinkChecker
4421
- |
4522
function timeout() { perl -e 'alarm shift; exec @ARGV' "$@"; }
4623
script:
4724
- |
4825
# 43min timeout
49-
if [[ "$JOB" == "build_android" ]]; then timeout 2580 docker run -it --rm -v "$TRAVIS_BUILD_DIR:/paddle" paddlepaddle/paddle:latest-dev-android;
50-
else timeout 2580 paddle/scripts/travis/${JOB}.sh; fi;
51-
RESULT=$?; if [ $RESULT -eq 0 ] || [ $RESULT -eq 142 ]; then true; else exit 1; fi;
26+
paddle/scripts/paddle_docker_build.sh ${JOB}
27+
if [ $? -eq 0 ] || [ $? -eq 142 ]; then true; else exit 1; fi;
5228
- |
53-
if [[ "$JOB" != "build_doc" ]]; then exit 0; fi;
29+
if [[ "$JOB" != "doc" ]]; then exit 0; fi;
30+
# For document only
5431
if [[ "$TRAVIS_PULL_REQUEST" != "false" ]]; then exit 0; fi;
5532
if [[ "$TRAVIS_BRANCH" != "develop" && ! "$TRAVIS_BRANCH" =~ ^v[[:digit:]]+\.[[:digit:]]+(\.[[:digit:]]+)?(-\S*)?$ ]]; then exit 0; fi;
5633
export DEPLOY_DOCS_SH=https://raw.githubusercontent.com/PaddlePaddle/PaddlePaddle.org/master/scripts/deploy/deploy_docs.sh
5734
export DOCS_DIR=`pwd`
5835
cd ..
59-
curl $DEPLOY_DOCS_SH | bash -s $CONTENT_DEC_PASSWD $TRAVIS_BRANCH $DOCS_DIR $DOCS_DIR/build/doc
36+
curl $DEPLOY_DOCS_SH | bash -s $CONTENT_DEC_PASSWD $TRAVIS_BRANCH $DOCS_DIR $DOCS_DIR/build/doc/
6037
notifications:
6138
email:
6239
on_success: change

AUTHORS.md

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,14 @@
22
|---|---|
33
| abhinavarora | Abhinav Arora |
44
| backyes | Yan-Fei Wang |
5+
| baiyfbupt | Yi-Fan Bai |
56
| beckett1124 | Bin Qi |
6-
| JiayiFeng | Jia-Yi Feng |
77
| chengxiaohua1105 | Xiao-Hua Cheng |
88
| cxwangyi, yiwangbaidu, wangkuiyi | Yi Wang |
99
| cxysteven | Xing-Yi Cheng |
1010
| dzhwinter | Zhi-Hong Dong |
11+
| dragonwarrior | Long Wang |
12+
| dyning | Yuning Du |
1113
| emailweixu | Wei Xu |
1214
| gangliao | Gang Liao |
1315
| gongweibao | Wei-Bao Gong |
@@ -16,6 +18,9 @@
1618
| hedaoyuan | Dao-Yuan He |
1719
| helinwang | He-Lin Wang |
1820
| jacquesqiao | Long-Fei Qiao |
21+
| jczaja | Jacek Czaja |
22+
| JiayiFeng | Jia-Yi Feng |
23+
| kbinias | Krzysztof Binias |
1924
| kuke | Yi-Bing Liu |
2025
| lcy-seso | Ying Cao |
2126
| lipeng-unisound | Peng Li |
@@ -24,15 +29,20 @@
2429
| llxxxll | Yong-Feng Liu |
2530
| luotao01 | Tao Luo |
2631
| lzhao4ever | Liang Zhao |
32+
| mozga-intel | Mateusz Ozga |
2733
| NHZlX | Zhao-Long Xing |
34+
| Noplz | Yuan Gao |
2835
| pakchoi | Chuan-Jiang Song |
36+
| panyx0718 | Xin Pan |
2937
| pengli09 | Peng Li |
3038
| pkuyym | Ya-Ming Yang |
39+
| pzelazko-intel | Pawel Zelazko |
3140
| QiJune | Jun Qi |
3241
| qingqing01 | Qing-Qing Dang |
3342
| reyoung | Yang Yu |
3443
| Superjom | Chun-Wei Yan |
3544
| tianbingsz | Tian-Bing Xu |
45+
| tpatejko | Tomasz Patejko |
3646
| typhoonzero | Yi Wu |
3747
| wanghaoshuang | Hao-Shuang Wang |
3848
| wangyang59 | Yang Wang |

CMakeLists.txt

Lines changed: 12 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,7 @@ include(simd)
3636

3737
################################ Configurations #######################################
3838
option(WITH_GPU "Compile PaddlePaddle with NVIDIA GPU" ${CUDA_FOUND})
39+
option(WITH_AMD_GPU "Compile PaddlePaddle with AMD GPU" OFF)
3940
option(WITH_AVX "Compile PaddlePaddle with AVX intrinsics" ${AVX_FOUND})
4041
option(WITH_MKL "Compile PaddlePaddle with MKL support." ${AVX_FOUND})
4142
option(WITH_DSO "Compile PaddlePaddle with dynamic linked CUDA" ON)
@@ -52,8 +53,7 @@ option(WITH_COVERAGE "Compile PaddlePaddle with code coverage" OFF)
5253
option(COVERALLS_UPLOAD "Package code coverage data to coveralls" OFF)
5354
option(ON_TRAVIS "Exclude special unit test on Travis CI" OFF)
5455
option(WITH_C_API "Compile PaddlePaddle with C-API(Prediction)" OFF)
55-
# TODO: Only compile PaddlePaddle fluid version by WITH_FLUID option.
56-
option(WITH_FLUID "Compile PaddlePaddle fluid only(TODO)" ON)
56+
option(WITH_FLUID_ONLY "Compile PaddlePaddle fluid only" OFF)
5757
option(WITH_GOLANG "Compile PaddlePaddle with GOLANG" OFF)
5858
option(GLIDE_INSTALL "Download and install go dependencies " ON)
5959
option(USE_NNPACK "Compile PaddlePaddle with NNPACK library" OFF)
@@ -108,7 +108,7 @@ if (WITH_C_API AND WITH_PYTHON)
108108
endif()
109109

110110
if (WITH_C_API)
111-
set(WITH_FLUID OFF CACHE STRING "Disable install fluid when compile the C_API" FORCE)
111+
set(WITH_FLUID_ONLY OFF CACHE STRING "Disable install fluid when compile the C_API" FORCE)
112112
endif()
113113

114114
if(MOBILE_INFERENCE)
@@ -144,6 +144,9 @@ include(external/eigen) # download eigen3
144144
include(external/pybind11) # download pybind11
145145
include(external/cares)
146146
include(external/grpc)
147+
include(external/snappy) # download snappy
148+
include(external/snappystream)
149+
include(external/threadpool)
147150

148151
include(cudnn) # set cudnn libraries, must before configure
149152
include(cupti)
@@ -176,8 +179,14 @@ set(EXTERNAL_LIBS
176179

177180
if(WITH_GPU)
178181
include(cuda)
182+
include(tensorrt)
179183
endif(WITH_GPU)
180184

185+
if(WITH_AMD_GPU)
186+
find_package(HIP)
187+
include(hip)
188+
endif(WITH_AMD_GPU)
189+
181190
if(WITH_MKLML)
182191
list(APPEND EXTERNAL_LIBS ${MKLML_IOMP_LIB})
183192
endif()

Dockerfile

Lines changed: 23 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
# A image for building paddle binaries
22
# Use cuda devel base image for both cpu and gpu environment
3-
FROM nvidia/cuda:8.0-cudnn5-devel-ubuntu16.04
3+
# When you modify it, please be aware of cudnn-runtime version
4+
# and libcudnn.so.x in paddle/scripts/docker/build.sh
5+
FROM nvidia/cuda:8.0-cudnn7-devel-ubuntu16.04
46
MAINTAINER PaddlePaddle Authors <[email protected]>
57

68
ARG UBUNTU_MIRROR
@@ -21,7 +23,7 @@ ENV HOME /root
2123
COPY ./paddle/scripts/docker/root/ /root/
2224

2325
RUN apt-get update && \
24-
apt-get install -y \
26+
apt-get install -y --allow-downgrades \
2527
git python-pip python-dev openssh-server bison \
2628
libnccl2=2.1.2-1+cuda8.0 libnccl-dev=2.1.2-1+cuda8.0 \
2729
wget unzip unrar tar xz-utils bzip2 gzip coreutils ntp \
@@ -30,7 +32,7 @@ RUN apt-get update && \
3032
automake locales clang-format swig doxygen cmake \
3133
liblapack-dev liblapacke-dev \
3234
clang-3.8 llvm-3.8 libclang-3.8-dev \
33-
net-tools libtool && \
35+
net-tools libtool ccache && \
3436
apt-get clean -y
3537

3638
# Install Go and glide
@@ -45,6 +47,17 @@ ENV PATH=${PATH}:${GOROOT}/bin:${GOPATH}/bin
4547
# install glide
4648
RUN curl -s -q https://glide.sh/get | sh
4749

50+
# Install TensorRT
51+
# following TensorRT.tar.gz is not the default official one, we do two miny changes:
52+
# 1. Remove the unnecessary files to make the library small. TensorRT.tar.gz only contains include and lib now,
53+
# and its size is only one-third of the official one.
54+
# 2. Manually add ~IPluginFactory() in IPluginFactory class of NvInfer.h, otherwise, it couldn't work in paddle.
55+
# See https://github.com/PaddlePaddle/Paddle/issues/10129 for details.
56+
RUN wget -qO- http://paddlepaddledeps.bj.bcebos.com/TensorRT-4.0.0.3.Ubuntu-16.04.4.x86_64-gnu.cuda-8.0.cudnn7.0.tar.gz | \
57+
tar -xz -C /usr/local && \
58+
cp -rf /usr/local/TensorRT/include /usr && \
59+
cp -rf /usr/local/TensorRT/lib /usr
60+
4861
# git credential to skip password typing
4962
RUN git config --global credential.helper store
5063

@@ -53,10 +66,14 @@ RUN localedef -i en_US -f UTF-8 en_US.UTF-8
5366

5467
# FIXME: due to temporary ipykernel dependency issue, specify ipykernel jupyter
5568
# version util jupyter fixes this issue.
56-
RUN pip install --upgrade pip && \
69+
70+
# specify sphinx version as 1.5.6 and remove -U option for [pip install -U
71+
# sphinx-rtd-theme] since -U option will cause sphinx being updated to newest
72+
# version(1.7.1 for now), which causes building documentation failed.
73+
RUN pip install --upgrade pip==9.0.3 && \
5774
pip install -U wheel && \
58-
pip install -U docopt PyYAML sphinx && \
59-
pip install -U sphinx-rtd-theme==0.1.9 recommonmark
75+
pip install -U docopt PyYAML sphinx==1.5.6 && \
76+
pip install sphinx-rtd-theme==0.1.9 recommonmark
6077

6178
RUN pip install pre-commit 'ipython==5.3.0' && \
6279
pip install 'ipykernel==4.6.0' 'jupyter==1.0.0' && \

Dockerfile.android

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ RUN git config --global credential.helper store
2727
# Fix locales to en_US.UTF-8
2828
RUN localedef -i en_US -f UTF-8 en_US.UTF-8
2929

30-
RUN pip install --upgrade pip && \
30+
RUN pip install --upgrade pip==9.0.3 && \
3131
pip install -U 'protobuf==3.1.0' && \
3232
pip install -U wheel sphinx && \
3333
pip install pre-commit

README.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -75,19 +75,19 @@ We provide [English](http://www.paddlepaddle.org/docs/develop/documentation/en/g
7575

7676
You might want to start from this online interactive book that can run in a Jupyter Notebook.
7777

78-
- [Distributed Training](http://www.paddlepaddle.org/docs/develop/documentation/en/howto/usage/cluster/cluster_train_en.html)
78+
- [Distributed Training](http://www.paddlepaddle.org/docs/develop/documentation/en/howto/cluster/index_en.html)
7979

8080
You can run distributed training jobs on MPI clusters.
8181

82-
- [Distributed Training on Kubernetes](http://www.paddlepaddle.org/docs/develop/documentation/en/howto/usage/cluster/k8s_en.html)
82+
- [Distributed Training on Kubernetes](http://www.paddlepaddle.org/docs/develop/documentation/en/howto/cluster/multi_cluster/k8s_en.html)
8383

8484
You can also run distributed training jobs on Kubernetes clusters.
8585

86-
- [Python API](http://www.paddlepaddle.org/docs/develop/documentation/en/api/index_en.html)
86+
- [Python API](http://www.paddlepaddle.org/docs/develop/api/en/overview.html)
8787

8888
Our new API enables much shorter programs.
8989

90-
- [How to Contribute](http://www.paddlepaddle.org/docs/develop/documentation/en/howto/dev/contribute_to_paddle_en.html)
90+
- [How to Contribute](http://www.paddlepaddle.org/docs/develop/documentation/fluid/en/dev/contribute_to_paddle_en.html)
9191

9292
We appreciate your contributions!
9393

0 commit comments

Comments
 (0)