Skip to content

Commit 0108836

Browse files
committed
Merge branch 'develop' of https://github.com/PaddlePaddle/Paddle into refine_layer_norm
2 parents ad45d39 + 445ca3d commit 0108836

File tree

676 files changed

+31702
-6125
lines changed

Some content is hidden

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

676 files changed

+31702
-6125
lines changed

.travis.yml

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -27,15 +27,6 @@ script:
2727
# 43min timeout
2828
paddle/scripts/paddle_docker_build.sh ${JOB}
2929
if [ $? -eq 0 ] || [ $? -eq 142 ]; then true; else exit 1; fi;
30-
- |
31-
if [[ "$JOB" != "doc" ]]; then exit 0; fi;
32-
# For document only
33-
if [[ "$TRAVIS_PULL_REQUEST" != "false" ]]; then exit 0; fi;
34-
if [[ "$TRAVIS_BRANCH" != "develop" && ! "$TRAVIS_BRANCH" =~ ^v[[:digit:]]+\.[[:digit:]]+(\.[[:digit:]]+)?(-\S*)?$ ]]; then exit 0; fi;
35-
export DEPLOY_DOCS_SH=https://raw.githubusercontent.com/PaddlePaddle/PaddlePaddle.org/master/scripts/deploy/deploy_docs.sh
36-
export DOCS_DIR=`pwd`
37-
cd ..
38-
curl $DEPLOY_DOCS_SH | bash -s $CONTENT_DEC_PASSWD $TRAVIS_BRANCH $DOCS_DIR $DOCS_DIR/build/doc/
3930
notifications:
4031
email:
4132
on_success: change

AUTHORS.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,7 @@
4646
| tianbingsz | Tian-Bing Xu |
4747
| tpatejko | Tomasz Patejko |
4848
| typhoonzero | Yi Wu |
49+
| velconia | Qi-Yang Min |
4950
| wanghaoshuang | Hao-Shuang Wang |
5051
| wangyang59 | Yang Wang |
5152
| wangzhen-nlp | Zhen Wang |

CMakeLists.txt

Lines changed: 32 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,14 @@ option(REPLACE_ENFORCE_GLOG "Replace PADDLE_ENFORCE with glog/CHECK for better d
6565
option(WITH_ANAKIN "Compile with Anakin library" OFF)
6666
option(WITH_GRPC "Use grpc as the default rpc framework" ${WITH_DISTRIBUTE})
6767
option(WITH_BRPC_RDMA "Use brpc rdma as the rpc protocal" OFF)
68+
option(WITH_INFERENCE "Compile fluid inference library" ON)
6869
option(WITH_SYSTEM_BLAS "Use system blas library" OFF)
70+
option(PY_VERSION "Compile PaddlePaddle with python3 support" ${PY_VERSION})
71+
72+
# PY_VERSION
73+
if(NOT PY_VERSION)
74+
set(PY_VERSION 2.7)
75+
endif()
6976

7077
# CMAKE_BUILD_TYPE
7178
if(NOT CMAKE_BUILD_TYPE)
@@ -103,6 +110,11 @@ if(ANDROID OR IOS)
103110
add_definitions(-DPADDLE_MOBILE_INFERENCE)
104111
endif()
105112

113+
if (APPLE OR WIN32)
114+
set(WITH_MKL OFF CACHE STRING
115+
"Disable MKL for building on mac and windows" FORCE)
116+
endif()
117+
106118
set(THIRD_PARTY_PATH "${CMAKE_BINARY_DIR}/third_party" CACHE STRING
107119
"A path setting third party libraries download & build directories.")
108120

@@ -125,6 +137,12 @@ else()
125137
set(THIRD_PARTY_BUILD_TYPE Release)
126138
endif()
127139

140+
if(WITH_MKL)
141+
option(MKL_SPLIT_GEMM "PaddlePaddle MKL gemm would split to small ones" OFF)
142+
if (MKL_SPLIT_GEMM)
143+
add_definitions(-DPADDLE_MKL_SPLIT_GEMM)
144+
endif()
145+
endif()
128146
set(WITH_MKLML ${WITH_MKL})
129147
if (NOT DEFINED WITH_MKLDNN)
130148
if (WITH_MKL AND AVX2_FOUND)
@@ -141,6 +159,7 @@ endif()
141159
########################################################################################
142160

143161
include(external/mklml) # download mklml package
162+
include(external/libxsmm) # download, build, install libxsmm
144163
include(external/zlib) # download, build, install zlib
145164
include(external/gflags) # download, build, install gflags
146165
include(external/glog) # download, build, install glog
@@ -156,6 +175,7 @@ include(external/any) # download libn::any
156175
include(external/eigen) # download eigen3
157176
include(external/pybind11) # download pybind11
158177
include(external/cares)
178+
include(external/cub)
159179

160180
if(WITH_DISTRIBUTE)
161181
if(WITH_GRPC)
@@ -182,6 +202,14 @@ include(external/snappy) # download snappy
182202
include(external/snappystream)
183203
include(external/threadpool)
184204

205+
if(WITH_GPU)
206+
include(cuda)
207+
include(tensorrt)
208+
include(external/anakin)
209+
else()
210+
set(WITH_ANAKIN OFF CACHE STRING "Anakin is valid only when GPU is set." FORCE)
211+
endif()
212+
185213
include(cudnn) # set cudnn libraries, must before configure
186214
include(cupti)
187215
include(configure) # add paddle env configuration
@@ -210,14 +238,6 @@ set(EXTERNAL_LIBS
210238
${PYTHON_LIBRARIES}
211239
)
212240

213-
if(WITH_GPU)
214-
include(cuda)
215-
include(tensorrt)
216-
include(external/anakin)
217-
else()
218-
set(WITH_ANAKIN OFF CACHE STRING "Anakin is valid only when GPU is set." FORCE)
219-
endif()
220-
221241
if(WITH_AMD_GPU)
222242
find_package(HIP)
223243
include(hip)
@@ -227,6 +247,10 @@ if(WITH_MKLML)
227247
list(APPEND EXTERNAL_LIBS ${MKLML_IOMP_LIB})
228248
endif()
229249

250+
if(WITH_LIBXSMM)
251+
list(APPEND EXTERNAL_LIBS ${LIBXSMM_LIBS})
252+
endif()
253+
230254
if(WITH_MKLDNN)
231255
list(APPEND EXTERNAL_LIBS ${MKLDNN_LIB})
232256
endif()
@@ -266,7 +290,3 @@ if(WITH_DOC)
266290
find_python_module(recommonmark REQUIRED)
267291
add_subdirectory(doc)
268292
endif()
269-
270-
if (WITH_CONTRIB)
271-
add_subdirectory(paddle/contrib)
272-
endif()

Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ RUN pip install pre-commit 'ipython==5.3.0' && \
8080
pip install opencv-python
8181

8282
#For docstring checker
83-
RUN pip install pylint pytest astroid isort
83+
RUN pip install pylint pytest astroid isort LinkChecker
8484

8585
COPY ./python/requirements.txt /root/
8686
RUN pip install -r /root/requirements.txt

README.md

Lines changed: 15 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,21 @@ learning to many products at Baidu.
1818
Our vision is to enable deep learning for everyone via PaddlePaddle.
1919
Please refer to our [release announcement](https://github.com/PaddlePaddle/Paddle/releases) to track the latest feature of PaddlePaddle.
2020

21-
### Lastest PaddlePaddle Version: [Fluid](https://github.com/PaddlePaddle/Paddle/tree/develop/paddle/fluid)
21+
22+
### Latest PaddlePaddle Release: [Fluid 0.14.0](https://github.com/PaddlePaddle/Paddle/tree/v0.14.0)
23+
### Install Latest Stable Release:
24+
```
25+
# Linux CPU
26+
pip install paddlepaddle
27+
# Linux GPU cuda9cudnn7
28+
pip install paddlepaddle-gpu
29+
# Linux GPU cuda8cudnn7
30+
pip install paddlepaddle-gpu==0.14.0.post87
31+
# Linux GPU cuda8cudnn5
32+
pip install paddlepaddle-gpu==0.14.0.post85
33+
34+
# For installation on other platform, refer to http://paddlepaddle.org/
35+
```
2236

2337
## Features
2438

benchmark/fluid/fluid_benchmark.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -85,8 +85,7 @@ def dist_transpile(trainer_id, args):
8585
trainer_id,
8686
pservers=pserver_endpoints,
8787
trainers=trainers,
88-
sync_mode=not args.async_mode,
89-
slice_var_up=not args.no_split_var)
88+
sync_mode=not args.async_mode)
9089
if training_role == "PSERVER":
9190
pserver_program = t.get_pserver_program(current_endpoint)
9291
pserver_startup_program = t.get_startup_program(current_endpoint,
@@ -210,7 +209,7 @@ def train_parallel(avg_loss, infer_prog, optimizer, train_reader, test_reader,
210209
# generate fake:
211210
if args.use_fake_data:
212211
for var in feed_var_list:
213-
v = startup_prog.global_block().clone_variable(var)
212+
v = startup_prog.global_block()._clone_variable(var)
214213
var.persistable = True
215214
v.persistable = True
216215

benchmark/paddle/image/run.sh

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
#!/bin/bash
2+
13
set -e
24

35
function train() {

benchmark/paddle/image/run_mkl_infer.sh

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
#!/bin/bash
2+
13
set -e
24

35
function clock_to_seconds() {

benchmark/paddle/image/run_mkl_train.sh

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
#!/bin/bash
2+
13
set -e
24

35
function train() {

benchmark/paddle/image/run_openblas_infer.sh

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
#!/bin/bash
2+
13
set -e
24

35
function clock_to_seconds() {

0 commit comments

Comments
 (0)