Skip to content

Commit 0231aad

Browse files
committed
Merge branch 'develop' of http://github.com/paddlepaddle/paddle into patch-1
2 parents f2e92c5 + e800597 commit 0231aad

File tree

902 files changed

+8915
-3618
lines changed

Some content is hidden

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

902 files changed

+8915
-3618
lines changed

.gitignore

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,9 @@
1+
paddle/operators/check_t.save
2+
paddle/operators/check_tensor.ls
3+
paddle/operators/tensor.save
4+
python/paddle/v2/fluid/tests/book/image_classification_resnet.inference.model/
5+
python/paddle/v2/fluid/tests/book/image_classification_vgg.inference.model/
6+
python/paddle/v2/fluid/tests/book/label_semantic_roles.inference.model/
17
*.DS_Store
28
build/
39
build_doc/
@@ -27,5 +33,5 @@ CMakeFiles
2733
cmake_install.cmake
2834
paddle/.timestamp
2935
python/paddlepaddle.egg-info/
30-
paddle/pybind/pybind.h
36+
paddle/fluid/pybind/pybind.h
3137
python/paddle/version.py

CMakeLists.txt

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -137,7 +137,7 @@ include(external/openblas) # download, build, install openblas
137137
include(external/mkldnn) # download, build, install mkldnn
138138
include(external/swig) # download, build, install swig
139139
include(external/warpctc) # download, build, install warpctc
140-
include(external/boost) # download, build, install boost
140+
include(external/boost) # download boost
141141
include(external/any) # download libn::any
142142
include(external/eigen) # download eigen3
143143
include(external/pybind11) # download pybind11
@@ -156,6 +156,7 @@ include(rdma) # set rdma libraries
156156
include(flags) # set paddle compile flags
157157
include(version) # set PADDLE_VERSION
158158
include(coveralls) # set code coverage
159+
include(inference_lib) # add paddle fluid inference libraries
159160

160161

161162
include_directories("${PADDLE_SOURCE_DIR}")

CONTRIBUTING.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
11
# Contribute Code
22

3+
You are welcome to contribute to project PaddlePaddle. To contribute to PaddlePaddle, you have to agree with the
4+
[PaddlePaddle Contributor License Agreement](https://gist.github.com/wangkuiyi/0c22c7b1bd3bb7eb27d76f85c3a3e329).
5+
36
We sincerely appreciate your contribution. This document explains our workflow and work style.
47

58
## Workflow

cmake/cuda.cmake

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -181,7 +181,8 @@ elseif(CMAKE_BUILD_TYPE STREQUAL "Release")
181181
elseif(CMAKE_BUILD_TYPE STREQUAL "RelWithDebInfo")
182182
list(APPEND CUDA_NVCC_FLAGS ${CMAKE_CXX_FLAGS_RELWITHDEBINFO})
183183
elseif(CMAKE_BUILD_TYPE STREQUAL "MinSizeRel")
184-
list(APPEND CUDA_NVCC_FLAGS ${CMAKE_CXX_FLAGS_MINSIZEREL})
184+
# nvcc 9 does not support -Os. Use Release flags instead
185+
list(APPEND CUDA_NVCC_FLAGS ${CMAKE_CXX_FLAGS_RELEASE})
185186
endif()
186187

187188
mark_as_advanced(CUDA_BUILD_CUBIN CUDA_BUILD_EMULATION CUDA_VERBOSE_BUILD)

cmake/external/boost.cmake

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ set(BOOST_URL "http://sourceforge.net/projects/boost/files/boost/${BOO
2121
set(BOOST_SOURCES_DIR ${THIRD_PARTY_PATH}/boost)
2222
set(BOOST_DOWNLOAD_DIR "${BOOST_SOURCES_DIR}/src/${BOOST_PROJECT}")
2323
set(BOOST_INCLUDE_DIR "${BOOST_DOWNLOAD_DIR}/${BOOST_TAR}" CACHE PATH "boost include directory." FORCE)
24+
set_directory_properties(PROPERTIES CLEAN_NO_CUSTOM 1)
2425

2526
include_directories(${BOOST_INCLUDE_DIR})
2627

cmake/external/eigen.cmake

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -28,9 +28,3 @@ endif()
2828
add_dependencies(eigen3 extern_eigen3)
2929

3030
LIST(APPEND external_project_dependencies eigen3)
31-
32-
IF(NOT WITH_C_API AND WITH_FLUID)
33-
INSTALL(FILES ${EIGEN_INCLUDE_DIR}/Eigen/Core DESTINATION third_party/eigen3/Eigen)
34-
INSTALL(DIRECTORY ${EIGEN_INCLUDE_DIR}/Eigen/src DESTINATION third_party/eigen3/Eigen)
35-
INSTALL(DIRECTORY ${EIGEN_INCLUDE_DIR}/unsupported/Eigen DESTINATION third_party/eigen3/unsupported)
36-
ENDIF()

cmake/external/gflags.cmake

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ ADD_DEPENDENCIES(gflags extern_gflags)
5252

5353
LIST(APPEND external_project_dependencies gflags)
5454

55-
IF(WITH_C_API OR WITH_FLUID)
55+
IF(WITH_C_API)
5656
INSTALL(DIRECTORY ${GFLAGS_INCLUDE_DIR} DESTINATION third_party/gflags)
5757
IF(ANDROID)
5858
INSTALL(FILES ${GFLAGS_LIBRARIES} DESTINATION third_party/gflags/lib/${ANDROID_ABI})

cmake/external/glog.cmake

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ LINK_LIBRARIES(glog gflags)
6868

6969
LIST(APPEND external_project_dependencies glog)
7070

71-
IF(WITH_C_API OR WITH_FLUID)
71+
IF(WITH_C_API)
7272
INSTALL(DIRECTORY ${GLOG_INCLUDE_DIR} DESTINATION third_party/glog)
7373
IF(ANDROID)
7474
INSTALL(FILES ${GLOG_LIBRARIES} DESTINATION third_party/glog/lib/${ANDROID_ABI})

cmake/external/protobuf.cmake

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -250,7 +250,7 @@ IF(NOT PROTOBUF_FOUND)
250250
SET(PROTOBUF_PROTOC_LIBRARY ${extern_protobuf_PROTOC_LIBRARY}
251251
CACHE FILEPATH "protoc library." FORCE)
252252

253-
IF(WITH_C_API OR WITH_FLUID)
253+
IF(WITH_C_API)
254254
INSTALL(DIRECTORY ${PROTOBUF_INCLUDE_DIR} DESTINATION third_party/protobuf)
255255
IF(ANDROID)
256256
INSTALL(FILES ${PROTOBUF_LITE_LIBRARY} DESTINATION third_party/protobuf/lib/${ANDROID_ABI})

cmake/external/warpctc.cmake

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,7 @@ ExternalProject_Add(
5252
-DWITH_TORCH=OFF
5353
-DCMAKE_DISABLE_FIND_PACKAGE_Torch=ON
5454
-DBUILD_SHARED=ON
55+
-DBUILD_TESTS=OFF
5556
-DCMAKE_POSITION_INDEPENDENT_CODE=ON
5657
-DCMAKE_BUILD_TYPE=${THIRD_PARTY_BUILD_TYPE}
5758
${EXTERNAL_OPTIONAL_ARGS}

0 commit comments

Comments
 (0)