Skip to content

Commit 9c1c19b

Browse files
committed
Merge branch 'develop' of github.com:baidu/Paddle into feature/c_api
2 parents d49c627 + 5961b52 commit 9c1c19b

Some content is hidden

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

76 files changed

+2496
-1179
lines changed

.dockerignore

Lines changed: 0 additions & 1 deletion
This file was deleted.

.dockerignore

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
*.DS_Store
2+
build/
3+
*.user
4+
.vscode
5+
.idea
6+
.project
7+
.cproject
8+
.pydevproject
9+
Makefile
10+
.test_env/
11+
third_party/
12+
*~
13+
bazel-*
14+
15+
!build/*.deb

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ build/
77
.project
88
.cproject
99
.pydevproject
10+
.settings/
1011
Makefile
1112
.test_env/
1213
third_party/

CMakeLists.txt

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ option(WITH_RDMA "Compile PaddlePaddle with RDMA support" OFF)
4040
option(WITH_TIMER "Compile PaddlePaddle with stats timer" OFF)
4141
option(WITH_PROFILER "Compile PaddlePaddle with GPU profiler" OFF)
4242
option(WITH_DOC "Compile PaddlePaddle with documentation" OFF)
43-
option(ON_COVERALLS "Compile PaddlePaddle with code coverage" OFF)
43+
option(WITH_COVERAGE "Compile PaddlePaddle with code coverage" OFF)
4444
option(COVERALLS_UPLOAD "Package code coverage data to coveralls" OFF)
4545
option(ON_TRAVIS "Exclude special unit test on Travis CI" OFF)
4646
option(WITH_C_API "Compile PaddlePaddle with C-API(Prediction)" OFF)
@@ -90,14 +90,21 @@ include_directories("${PROJ_ROOT}/paddle/cuda/include")
9090
include_directories("${CMAKE_CURRENT_BINARY_DIR}/proto")
9191

9292
set(EXTERNAL_LIBS
93-
# have not include gtest here.
9493
${GFLAGS_LIBRARIES}
9594
${GLOG_LIBRARIES}
9695
${CBLAS_LIBRARIES}
9796
${PROTOBUF_LIBRARY}
9897
${ZLIB_LIBRARIES}
98+
${PYTHON_LIBRARIES}
9999
)
100100

101+
if(WITH_GPU)
102+
list(APPEND EXTERNAL_LIB ${CUDA_LIBRARIES} ${CUDA_rt_LIBRARY})
103+
if(NOT WITH_DSO)
104+
list(APPEND EXTERNAL_LIB ${CUDNN_LIBRARY} ${CUDA_CUBLAS_LIBRARIES} ${CUDA_curand_LIBRARY})
105+
endif(NOT WITH_DSO)
106+
endif(WITH_GPU)
107+
101108
add_subdirectory(proto)
102109
add_subdirectory(paddle)
103110
add_subdirectory(python)

Dockerfile

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -3,20 +3,17 @@
33
FROM nvidia/cuda:7.5-cudnn5-devel-ubuntu14.04
44
MAINTAINER PaddlePaddle Authors <[email protected]>
55

6-
ARG DEBIAN_FRONTEND=noninteractive
76
ARG UBUNTU_MIRROR
87
RUN /bin/bash -c 'if [[ -n ${UBUNTU_MIRROR} ]]; then sed -i 's#http://archive.ubuntu.com/ubuntu#${UBUNTU_MIRROR}#g' /etc/apt/sources.list; fi'
98

109
# ENV variables
1110
ARG BUILD_WOBOQ
12-
ARG BUILD_AND_INSTALL
1311
ARG WITH_GPU
1412
ARG WITH_AVX
1513
ARG WITH_DOC
1614
ARG WITH_STYLE_CHECK
1715

1816
ENV BUILD_WOBOQ=${BUILD_WOBOQ:-OFF}
19-
ENV BUILD_AND_INSTALL=${BUILD_AND_INSTALL:-OFF}
2017
ENV WITH_GPU=${WITH_AVX:-OFF}
2118
ENV WITH_AVX=${WITH_AVX:-ON}
2219
ENV WITH_DOC=${WITH_DOC:-OFF}
@@ -31,7 +28,7 @@ RUN apt-get update && \
3128
apt-get install -y wget unzip tar xz-utils bzip2 gzip coreutils && \
3229
apt-get install -y curl sed grep graphviz libjpeg-dev zlib1g-dev && \
3330
apt-get install -y python-numpy python-matplotlib gcc g++ gfortran && \
34-
apt-get install -y automake locales clang-format-3.8 && \
31+
apt-get install -y automake locales clang-format-3.8 swig && \
3532
apt-get clean -y
3633

3734
# git credential to skip password typing
@@ -51,8 +48,6 @@ RUN curl -sSL https://cmake.org/files/v3.4/cmake-3.4.1.tar.gz | tar -xz && \
5148
cd cmake-3.4.1 && ./bootstrap && make -j `nproc` && make install && \
5249
cd .. && rm -rf cmake-3.4.1
5350

54-
RUN apt-get install -y swig
55-
5651
VOLUME ["/usr/share/nginx/html/data", "/usr/share/nginx/html/paddle"]
5752

5853
# Configure OpenSSH server. c.f. https://docs.docker.com/engine/examples/running_ssh_service

README.md

Lines changed: 24 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@
22

33

44
[![Build Status](https://travis-ci.org/PaddlePaddle/Paddle.svg?branch=develop)](https://travis-ci.org/PaddlePaddle/Paddle)
5-
[![Documentation Status](https://img.shields.io/badge/docs-latest-brightgreen.svg?style=flat)](http://www.paddlepaddle.org/)
6-
[![Documentation Status](https://img.shields.io/badge/中文文档-最新-brightgreen.svg)](http://www.paddlepaddle.org/cn/index.html)
5+
[![Documentation Status](https://img.shields.io/badge/docs-latest-brightgreen.svg?style=flat)](http://www.paddlepaddle.org/develop/doc/)
6+
[![Documentation Status](https://img.shields.io/badge/中文文档-最新-brightgreen.svg)](http://www.paddlepaddle.org/doc_cn/)
77
[![Coverage Status](https://coveralls.io/repos/github/PaddlePaddle/Paddle/badge.svg?branch=develop)](https://coveralls.io/github/PaddlePaddle/Paddle?branch=develop)
88
[![Release](https://img.shields.io/github/release/PaddlePaddle/Paddle.svg)](https://github.com/PaddlePaddle/Paddle/releases)
99
[![License](https://img.shields.io/badge/license-Apache%202-blue.svg)](LICENSE)
@@ -59,36 +59,36 @@ Please refer to our [release announcement](https://github.com/PaddlePaddle/Paddl
5959
the capability of PaddlePaddle to make a huge impact for your product.
6060

6161
## Installation
62-
Check out the [Install Guide](http://paddlepaddle.org/doc/build/) to install from
63-
pre-built packages (**docker image**, **deb package**) or
64-
directly build on **Linux** and **Mac OS X** from the source code.
62+
63+
It is recommended to check out the
64+
[Docker installation guide](http://www.paddlepaddle.org/develop/doc/getstarted/build_and_install/docker_install_en.html)
65+
before looking into the
66+
[build from source guide](http://www.paddlepaddle.org/develop/doc/getstarted/build_and_install/build_from_source_en.html)
6567

6668
## Documentation
67-
Both [English Docs](http://paddlepaddle.org/doc/) and [Chinese Docs](http://paddlepaddle.org/doc_cn/) are provided for our users and developers.
6869

69-
- [Quick Start](http://paddlepaddle.org/doc/demo/quick_start/index_en) <br>
70-
You can follow the quick start tutorial to learn how use PaddlePaddle
71-
step-by-step.
70+
We provide [English](http://www.paddlepaddle.org/develop/doc/) and
71+
[Chinese](http://www.paddlepaddle.org/doc_cn/) documentation.
72+
73+
- [Deep Learning 101](http://book.paddlepaddle.org/index.en.html)
74+
75+
You might want to start from the this online interactive book that can run in Jupyter Notebook.
76+
77+
- [Distributed Training](http://www.paddlepaddle.org/develop/doc/howto/usage/cluster/cluster_train_en.html)
78+
79+
You can run distributed training jobs on MPI clusters.
80+
81+
- [Distributed Training on Kubernetes](http://www.paddlepaddle.org/develop/doc/howto/usage/k8s/k8s_en.html)
7282

73-
- [Example and Demo](http://paddlepaddle.org/doc/demo/) <br>
74-
We provide five demos, including: image classification, sentiment analysis,
75-
sequence to sequence model, recommendation, semantic role labeling.
83+
You can also run distributed training jobs on Kubernetes clusters.
7684

77-
- [Distributed Training](http://paddlepaddle.org/doc/cluster) <br>
78-
This system supports training deep learning models on multiple machines
79-
with data parallelism.
85+
- [Python API](http://www.paddlepaddle.org/develop/doc/api/index_en.html)
8086

81-
- [Python API](http://paddlepaddle.org/doc/ui/) <br>
82-
PaddlePaddle supports using either Python interface or C++ to build your
83-
system. We also use SWIG to wrap C++ source code to create a user friendly
84-
interface for Python. You can also use SWIG to create interface for your
85-
favorite programming language.
87+
Our new API enables much shorter programs.
8688

87-
- [How to Contribute](http://paddlepaddle.org/doc/build/contribute_to_paddle.html) <br>
88-
We sincerely appreciate your interest and contributions. If you would like to
89-
contribute, please read the contribution guide.
89+
- [How to Contribute](http://www.paddlepaddle.org/develop/doc/howto/dev/contribute_to_paddle_en.html)
9090

91-
- [Source Code Documents](http://paddlepaddle.org/doc/source/) <br>
91+
We appreciate your contributions!
9292

9393
## Ask Questions
9494

cmake/coveralls.cmake

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ function(code_coverage _COVERAGE_SRCS _COVERALLS_UPLOAD _CMAKE_SCRIPT_PATH)
6161
endif()
6262
endfunction()
6363

64-
if(ON_COVERALLS)
64+
if(WITH_COVERAGE)
6565
set(CMAKE_BUILD_TYPE "Debug")
6666
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -g -O0 -fprofile-arcs -ftest-coverage")
6767
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -g -O0 -fprofile-arcs -ftest-coverage")

cmake/coverallsGcovJsons.cmake

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -134,7 +134,7 @@ foreach(GCDA ${GCDA_FILES})
134134
# If -p is not specified then the file is named only "the_file.c.gcov"
135135
#
136136
execute_process(
137-
COMMAND "${GCOV_EXECUTABLE} -p -o ${GCDA_DIR} ${GCDA} >/dev/null"
137+
COMMAND ${GCOV_EXECUTABLE} -p -o ${GCDA_DIR} ${GCDA} >/dev/null
138138
WORKING_DIRECTORY ${GCDA_DIR}
139139
)
140140
endforeach()

cmake/external/openblas.cmake

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ IF(NOT ${CBLAS_FOUND})
4545
PREFIX ${CBLAS_SOURCES_DIR}
4646
INSTALL_DIR ${CBLAS_INSTALL_DIR}
4747
BUILD_IN_SOURCE 1
48-
BUILD_COMMAND ${CMAKE_MAKE_PROGRAM} FC=${CMAKE_Fortran_COMPILER} CC=${CMAKE_C_COMPILER} HOSTCC=${CMAKE_C_COMPILER} NO_SHARED=1 libs netlib
48+
BUILD_COMMAND ${CMAKE_MAKE_PROGRAM} FC=${CMAKE_Fortran_COMPILER} CC=${CMAKE_C_COMPILER} HOSTCC=${CMAKE_C_COMPILER} DYNAMIC_ARCH=1 NO_SHARED=1 libs netlib
4949
INSTALL_COMMAND ${CMAKE_MAKE_PROGRAM} install NO_SHARED=1 PREFIX=<INSTALL_DIR>
5050
UPDATE_COMMAND ""
5151
CONFIGURE_COMMAND ""

cmake/external/protobuf.cmake

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,8 @@
1414

1515
INCLUDE(ExternalProject)
1616

17-
FIND_PACKAGE(Protobuf 3.1)
17+
set(PROTOBUF_VERSION 3.1)
18+
FIND_PACKAGE(Protobuf ${PROTOBUF_VERSION})
1819

1920
IF(PROTOBUF_FOUND)
2021
EXEC_PROGRAM(${PROTOBUF_PROTOC_EXECUTABLE} ARGS --version OUTPUT_VARIABLE PROTOBUF_VERSION)

0 commit comments

Comments
 (0)