Skip to content

Commit 7b40f7c

Browse files
committed
Merge branch 'develop' into core_inference_prepare
2 parents 3a82578 + 9ed3674 commit 7b40f7c

File tree

136 files changed

+2015
-1190
lines changed

Some content is hidden

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

136 files changed

+2015
-1190
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

cmake/external/mklml.cmake

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ INCLUDE(ExternalProject)
2828

2929
SET(MKLML_PROJECT "extern_mklml")
3030
SET(MKLML_VER "mklml_lnx_2018.0.1.20171007")
31-
SET(MKLML_URL "https://github.com/01org/mkl-dnn/releases/download/v0.11/${MKLML_VER}.tgz")
31+
SET(MKLML_URL "http://paddlepaddledeps.bj.bcebos.com/${MKLML_VER}.tgz")
3232
SET(MKLML_SOURCE_DIR "${THIRD_PARTY_PATH}/mklml")
3333
SET(MKLML_DOWNLOAD_DIR "${MKLML_SOURCE_DIR}/src/${MKLML_PROJECT}")
3434
SET(MKLML_DST_DIR "mklml")

cmake/external/snappystream.cmake

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,5 +54,7 @@ add_library(snappystream STATIC IMPORTED GLOBAL)
5454
set_property(TARGET snappystream PROPERTY IMPORTED_LOCATION
5555
"${SNAPPYSTREAM_INSTALL_DIR}/lib/libsnappystream.a")
5656

57-
include_directories(${SNAPPYSTREAM_INCLUDE_DIR})
57+
include_directories(${SNAPPYSTREAM_INCLUDE_DIR}) # For snappysteam to include its own headers.
58+
include_directories(${THIRD_PARTY_PATH}/install) # For Paddle to include snappy stream headers.
59+
5860
add_dependencies(snappystream extern_snappystream)

cmake/external/warpctc.cmake

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,8 @@ ExternalProject_Add(
6262
)
6363

6464
MESSAGE(STATUS "warp-ctc library: ${WARPCTC_LIBRARIES}")
65-
INCLUDE_DIRECTORIES(${WARPCTC_INCLUDE_DIR})
65+
INCLUDE_DIRECTORIES(${WARPCTC_INCLUDE_DIR}) # For warpctc code to include its headers.
66+
INCLUDE_DIRECTORIES(${THIRD_PARTY_PATH}/install) # For Paddle code to include warpctc headers.
6667

6768
ADD_LIBRARY(warpctc SHARED IMPORTED GLOBAL)
6869
SET_PROPERTY(TARGET warpctc PROPERTY IMPORTED_LOCATION ${WARPCTC_LIBRARIES})

cmake/external/zlib.cmake

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,8 @@ ELSE(WIN32)
2525
SET(ZLIB_LIBRARIES "${ZLIB_INSTALL_DIR}/lib/libz.a" CACHE FILEPATH "zlib library." FORCE)
2626
ENDIF(WIN32)
2727

28-
INCLUDE_DIRECTORIES(${ZLIB_INCLUDE_DIR})
28+
INCLUDE_DIRECTORIES(${ZLIB_INCLUDE_DIR}) # For zlib code to include its own headers.
29+
INCLUDE_DIRECTORIES(${THIRD_PARTY_PATH}/install) # For Paddle code to include zlib.h.
2930

3031
ExternalProject_Add(
3132
extern_zlib

cmake/generic.cmake

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -251,7 +251,7 @@ function(cc_test TARGET_NAME)
251251
add_dependencies(${TARGET_NAME} ${cc_test_DEPS} paddle_gtest_main paddle_memory gtest gflags glog)
252252
add_test(NAME ${TARGET_NAME}
253253
COMMAND ${TARGET_NAME} ${cc_test_ARGS}
254-
WORKING_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR})
254+
WORKING_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR})
255255
endif()
256256
endfunction(cc_test)
257257

@@ -561,9 +561,9 @@ function(py_test TARGET_NAME)
561561
set(multiValueArgs SRCS DEPS ARGS ENVS)
562562
cmake_parse_arguments(py_test "${options}" "${oneValueArgs}" "${multiValueArgs}" ${ARGN})
563563
add_test(NAME ${TARGET_NAME}
564-
COMMAND env PYTHONPATH=${PADDLE_PYTHON_BUILD_DIR}/lib-python ${py_test_ENVS}
564+
COMMAND env PYTHONPATH=${PADDLE_BINARY_DIR}/python ${py_test_ENVS}
565565
${PYTHON_EXECUTABLE} -u ${py_test_SRCS} ${py_test_ARGS}
566-
WORKING_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR})
566+
WORKING_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR})
567567
endif()
568568
endfunction()
569569

doc/fluid/CMakeLists.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ 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)
30+
add_dependencies(paddle_fluid_docs gen_proto_py paddle_python)
3131

3232
# configured documentation tools and intermediate build results
3333
set(BINARY_BUILD_DIR_CN "${CMAKE_CURRENT_BINARY_DIR}/cn/_build")
@@ -50,6 +50,6 @@ sphinx_add_target(paddle_fluid_docs_cn
5050
${CMAKE_CURRENT_SOURCE_DIR}
5151
${SPHINX_HTML_DIR_CN})
5252

53-
add_dependencies(paddle_fluid_docs_cn gen_proto_py)
53+
add_dependencies(paddle_fluid_docs_cn gen_proto_py paddle_python)
5454

5555
add_subdirectory(api)

doc/fluid/api/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,4 +19,4 @@ sphinx_add_target(paddle_fluid_apis
1919
${CMAKE_CURRENT_SOURCE_DIR}
2020
${SPHINX_HTML_DIR_EN})
2121

22-
add_dependencies(paddle_fluid_apis gen_proto_py framework_py_proto copy_paddle_pybind)
22+
add_dependencies(paddle_fluid_apis gen_proto_py framework_py_proto copy_paddle_pybind paddle_python)

doc/fluid/dev/index_cn.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,5 +9,5 @@
99
use_eigen_cn.md
1010
name_convention.md
1111
support_new_device.md
12-
releasing_process.md
12+
releasing_process_cn.md
1313
op_markdown_format.md

doc/fluid/dev/index_en.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,5 +9,5 @@ Development
99
use_eigen_en.md
1010
name_convention.md
1111
support_new_device.md
12-
releasing_process.md
12+
releasing_process_en.md
1313
op_markdown_format.md

0 commit comments

Comments
 (0)