Skip to content

Commit fab6287

Browse files
committed
Merge branch 'develop' of https://github.com/PaddlePaddle/Paddle into make_get_test_program_private
2 parents 8a521c0 + 03d70c1 commit fab6287

File tree

441 files changed

+17253
-2682
lines changed

Some content is hidden

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

441 files changed

+17253
-2682
lines changed

CMakeLists.txt

Lines changed: 17 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,12 @@ 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)
6868
option(WITH_SYSTEM_BLAS "Use system blas library" OFF)
69+
option(PY_VERSION "Compile PaddlePaddle with python3 support" ${PY_VERSION})
70+
71+
# PY_VERSION
72+
if(NOT PY_VERSION)
73+
set(PY_VERSION 2.7)
74+
endif()
6975

7076
# CMAKE_BUILD_TYPE
7177
if(NOT CMAKE_BUILD_TYPE)
@@ -130,6 +136,12 @@ else()
130136
set(THIRD_PARTY_BUILD_TYPE Release)
131137
endif()
132138

139+
if(WITH_MKL)
140+
option(MKL_SPLIT_GEMM "PaddlePaddle MKL gemm would split to small ones" OFF)
141+
if (MKL_SPLIT_GEMM)
142+
add_definitions(-DPADDLE_MKL_SPLIT_GEMM)
143+
endif()
144+
endif()
133145
set(WITH_MKLML ${WITH_MKL})
134146
if (NOT DEFINED WITH_MKLDNN)
135147
if (WITH_MKL AND AVX2_FOUND)
@@ -146,6 +158,7 @@ endif()
146158
########################################################################################
147159

148160
include(external/mklml) # download mklml package
161+
include(external/libxsmm) # download, build, install libxsmm
149162
include(external/zlib) # download, build, install zlib
150163
include(external/gflags) # download, build, install gflags
151164
include(external/glog) # download, build, install glog
@@ -232,6 +245,10 @@ if(WITH_MKLML)
232245
list(APPEND EXTERNAL_LIBS ${MKLML_IOMP_LIB})
233246
endif()
234247

248+
if(WITH_LIBXSMM)
249+
list(APPEND EXTERNAL_LIBS ${LIBXSMM_LIBS})
250+
endif()
251+
235252
if(WITH_MKLDNN)
236253
list(APPEND EXTERNAL_LIBS ${MKLDNN_LIB})
237254
endif()
@@ -271,7 +288,3 @@ if(WITH_DOC)
271288
find_python_module(recommonmark REQUIRED)
272289
add_subdirectory(doc)
273290
endif()
274-
275-
if (WITH_CONTRIB)
276-
add_subdirectory(paddle/contrib)
277-
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: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -210,7 +210,7 @@ def train_parallel(avg_loss, infer_prog, optimizer, train_reader, test_reader,
210210
# generate fake:
211211
if args.use_fake_data:
212212
for var in feed_var_list:
213-
v = startup_prog.global_block().clone_variable(var)
213+
v = startup_prog.global_block()._clone_variable(var)
214214
var.persistable = True
215215
v.persistable = True
216216

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() {

benchmark/paddle/image/run_openblas_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/rnn/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() {

0 commit comments

Comments
 (0)