Skip to content

Commit 45578c1

Browse files
committed
Merge branch 'develop' of https://github.com/PaddlePaddle/Paddle into optimize-cpp-reader
2 parents cd31b90 + 885c4e5 commit 45578c1

File tree

1,543 files changed

+6796
-215423
lines changed

Some content is hidden

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

1,543 files changed

+6796
-215423
lines changed

.travis.yml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@ cache:
44
- $HOME/.ccache
55
- $HOME/.cache/pip
66
- $TRAVIS_BUILD_DIR/build/third_party
7-
- $TRAVIS_BUILD_DIR/build_android/third_party
87
sudo: required
98
dist: trusty
109
services:
@@ -13,7 +12,6 @@ os:
1312
- linux
1413
env:
1514
- JOB=check_style
16-
- JOB=build_android
1715
addons:
1816
ssh_known_hosts: 13.229.163.131
1917
before_install:

CMakeLists.txt

Lines changed: 0 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -279,9 +279,6 @@ include(inference_lib) # add paddle fluid inference libraries
279279

280280

281281
include_directories("${PADDLE_SOURCE_DIR}")
282-
include_directories("${PADDLE_SOURCE_DIR}/paddle/legacy/cuda/include")
283-
include_directories("${CMAKE_CURRENT_BINARY_DIR}/proto")
284-
include_directories("${CMAKE_CURRENT_BINARY_DIR}/go/pserver/client/c")
285282

286283
set(EXTERNAL_LIBS
287284
gflags
@@ -320,21 +317,6 @@ if(USE_NNPACK)
320317
list(APPEND EXTERNAL_LIBS ${NNPACK_LIBS})
321318
endif(USE_NNPACK)
322319

323-
add_subdirectory(proto)
324-
325-
if(NOT MOBILE_INFERENCE AND NOT WITH_FLUID_ONLY)
326-
# "add_subdirectory(go)" should be placed after the following loine,
327-
# because it depends on paddle/optimizer.
328-
add_subdirectory(paddle/legacy/optimizer)
329-
endif()
330-
331-
# "add_subdirectory(paddle)" and "add_subdirectory(python)" should be
332-
# placed after this block, because they depends on it.
333-
if(WITH_GOLANG)
334-
enable_language(Go)
335-
add_subdirectory(go)
336-
endif(WITH_GOLANG)
337-
338320
set(PADDLE_PYTHON_BUILD_DIR "${CMAKE_CURRENT_BINARY_DIR}/python/build")
339321

340322
set(CMAKE_CXX_FLAGS_RELWITHDEBINFO "-O3 -g -DNDEBUG")

CONTRIBUTING.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -128,7 +128,7 @@ Please install pre-commit, which automatically reformat the changes to C/C++ and
128128

129129
Please remember to add related unit tests.
130130

131-
- For C/C++ code, please follow [`google-test` Primer](https://github.com/google/googletest/blob/master/googletest/docs/Primer.md).
131+
- For C/C++ code, please follow [`google-test` Primer](https://github.com/google/googletest/blob/master/googletest/docs/primer.md) .
132132

133133
- For Python code, please use [Python's standard `unittest` package](http://pythontesting.net/framework/unittest/unittest-introduction/).
134134

cmake/generic.cmake

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -91,9 +91,9 @@
9191
include_directories(${CMAKE_CURRENT_BINARY_DIR})
9292

9393
if(NOT APPLE AND NOT ANDROID)
94-
find_package(Threads REQUIRED)
95-
link_libraries(${CMAKE_THREAD_LIBS_INIT})
96-
set(CMAKE_CXX_LINK_EXECUTABLE "${CMAKE_CXX_LINK_EXECUTABLE} -pthread -ldl -lrt")
94+
find_package(Threads REQUIRED)
95+
link_libraries(${CMAKE_THREAD_LIBS_INIT})
96+
set(CMAKE_CXX_LINK_EXECUTABLE "${CMAKE_CXX_LINK_EXECUTABLE} -pthread -ldl -lrt")
9797
endif(NOT APPLE AND NOT ANDROID)
9898

9999
set_property(GLOBAL PROPERTY FLUID_MODULES "")
@@ -304,7 +304,7 @@ function(cc_library TARGET_NAME)
304304
if(cc_library_DEPS)
305305
merge_static_libs(${TARGET_NAME} ${cc_library_DEPS})
306306
else()
307-
message(FATAL "Please specify source file or library in cc_library.")
307+
message(FATAL_ERROR "Please specify source files or libraries in cc_library(${TARGET_NAME} ...).")
308308
endif()
309309
endif(cc_library_SRCS)
310310
endfunction(cc_library)
@@ -748,7 +748,7 @@ function(grpc_library TARGET_NAME)
748748
#FIXME(putcn): the follwoing line is supposed to generate *.pb.h and cc, but
749749
# somehow it didn't. line 602 to 604 is to patching this. Leaving this here
750750
# for now to enable dist CI.
751-
protobuf_generate_cpp(grpc_proto_srcs grpc_proto_hdrs "${ABS_PROTO}")
751+
paddle_protobuf_generate_cpp(grpc_proto_srcs grpc_proto_hdrs "${ABS_PROTO}")
752752
set(grpc_grpc_srcs "${CMAKE_CURRENT_BINARY_DIR}/${PROTO_WE}.grpc.pb.cc")
753753
set(grpc_grpc_hdrs "${CMAKE_CURRENT_BINARY_DIR}/${PROTO_WE}.grpc.pb.h")
754754
cc_library("${TARGET_NAME}_proto" SRCS "${grpc_proto_srcs}")
@@ -791,7 +791,7 @@ function(brpc_library TARGET_NAME)
791791
get_filename_component(PROTO_WE ${brpc_library_PROTO} NAME_WE)
792792
get_filename_component(PROTO_PATH ${ABS_PROTO} PATH)
793793

794-
protobuf_generate_cpp(brpc_proto_srcs brpc_proto_hdrs "${ABS_PROTO}")
794+
paddle_protobuf_generate_cpp(brpc_proto_srcs brpc_proto_hdrs "${ABS_PROTO}")
795795
cc_library("${TARGET_NAME}_proto" SRCS "${brpc_proto_srcs}")
796796
cc_library("${TARGET_NAME}" SRCS "${brpc_library_SRCS}" DEPS "${TARGET_NAME}_proto" "${brpc_library_DEPS}")
797797
endfunction()

doc/CMakeLists.txt

Lines changed: 0 additions & 9 deletions
This file was deleted.

doc/about/about_us.rst

Lines changed: 0 additions & 53 deletions
This file was deleted.

doc/mobile/CMakeLists.txt

Lines changed: 0 additions & 52 deletions
This file was deleted.

0 commit comments

Comments
 (0)