Skip to content

Commit 494bee5

Browse files
committed
Merge branch 'develop' of https://github.com/PaddlePaddle/Paddle into feature/fix_parallel_exe
2 parents 30adc0b + faa752a commit 494bee5

File tree

129 files changed

+5851
-341
lines changed

Some content is hidden

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

129 files changed

+5851
-341
lines changed

.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: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ addons:
3434
- automake
3535
- libtool
3636
- ccache
37-
ssh_known_hosts: 52.76.173.135
37+
ssh_known_hosts: 13.229.163.131
3838
before_install:
3939
- if [[ "$JOB" == "check_style" ]]; then sudo ln -s /usr/bin/clang-format-3.8 /usr/bin/clang-format; fi
4040
# Paddle is using protobuf 3.1 currently. Protobuf 3.2 breaks the compatibility. So we specify the python

doc/CMakeLists.txt

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,9 @@
1+
add_custom_target(paddle_apis ALL
2+
DEPENDS paddle_v2_apis paddle_fluid_apis)
3+
4+
add_custom_target(paddle_docs ALL
5+
DEPENDS paddle_v2_docs paddle_v2_docs_cn
6+
paddle_fluid_docs paddle_fluid_docs_cn)
7+
18
add_subdirectory(v2)
29
add_subdirectory(fluid)

doc/fluid/CMakeLists.txt

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,8 @@ sphinx_add_target(paddle_fluid_docs
2727
${CMAKE_CURRENT_SOURCE_DIR}
2828
${SPHINX_HTML_DIR_EN})
2929

30+
add_dependencies(paddle_fluid_docs gen_proto_py)
31+
3032
# configured documentation tools and intermediate build results
3133
set(BINARY_BUILD_DIR_CN "${CMAKE_CURRENT_BINARY_DIR}/cn/_build")
3234

@@ -47,3 +49,7 @@ sphinx_add_target(paddle_fluid_docs_cn
4749
${SPHINX_CACHE_DIR_CN}
4850
${CMAKE_CURRENT_SOURCE_DIR}
4951
${SPHINX_HTML_DIR_CN})
52+
53+
add_dependencies(paddle_fluid_docs_cn gen_proto_py)
54+
55+
add_subdirectory(api)

doc/fluid/api/CMakeLists.txt

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
# configured documentation tools and intermediate build results
2+
set(BINARY_BUILD_DIR_EN "${CMAKE_CURRENT_BINARY_DIR}/en/_build")
3+
4+
# Sphinx cache with pickled ReST documents
5+
set(SPHINX_CACHE_DIR_EN "${CMAKE_CURRENT_BINARY_DIR}/en/_doctrees")
6+
7+
# HTML output director
8+
set(SPHINX_HTML_DIR_EN "${CMAKE_CURRENT_BINARY_DIR}/en/html")
9+
10+
configure_file(
11+
"${CMAKE_CURRENT_SOURCE_DIR}/../../templates/conf.py.en.in"
12+
"${BINARY_BUILD_DIR_EN}/conf.py"
13+
@ONLY)
14+
15+
sphinx_add_target(paddle_fluid_apis
16+
html
17+
${BINARY_BUILD_DIR_EN}
18+
${SPHINX_CACHE_DIR_EN}
19+
${CMAKE_CURRENT_SOURCE_DIR}
20+
${SPHINX_HTML_DIR_EN})
21+
22+
add_dependencies(paddle_fluid_apis gen_proto_py framework_py_proto copy_paddle_pybind)
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 commit comments

Comments
 (0)