Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
108 commits
Select commit Hold shift + click to select a range
20e579e
add initial_accumulator_value for adagrad
xuezhong Feb 1, 2019
ed20eb1
Merge branch 'develop' of https://github.com/PaddlePaddle/Paddle into…
xuezhong Feb 1, 2019
e261b60
change api spec for adagrad optimizer
xuezhong Feb 1, 2019
18bff52
extract fused_emb_seq_pool forward function
tensor-tang Feb 1, 2019
11afbe0
add details. test=develop
dzhwinter Feb 13, 2019
6d6ddcf
add details. test=develop
dzhwinter Feb 13, 2019
51d1e8c
add details. test=develop
dzhwinter Feb 13, 2019
283573c
add details. test=develop
dzhwinter Feb 14, 2019
f3463ec
refine pg execution
Feb 14, 2019
88d3dc9
Merge branch 'develop' of github.com:PaddlePaddle/Paddle into refine_pg
Feb 14, 2019
73005ee
cleanup code test=develop
Feb 14, 2019
ecdd116
cleanup code test=develop
Feb 14, 2019
bd0d44a
fix build failed test=develop
Feb 14, 2019
7cd6de3
fix cpu test=develop
Feb 14, 2019
fe7ffed
test=develop, update protobuf
JiabinYang Feb 14, 2019
c2ccf14
Merge remote-tracking branch 'ups/develop' into refine/pyramiddnn
tensor-tang Feb 14, 2019
15da2f9
add embseqpool jitkernel refer code, test and benchmark
tensor-tang Feb 13, 2019
a3a3d3d
add embseqpool jitkernel mkl impl and use it
tensor-tang Feb 14, 2019
b608552
test=develop, update protobuf in Dockerfile used by CI
JiabinYang Feb 15, 2019
48cf979
test=develop, install requirements before start for Linux
JiabinYang Feb 15, 2019
d376cf7
polish code for reading. test=develop
dzhwinter Feb 17, 2019
c1455e6
Merge remote-tracking branch 'origin/develop' into cherry-pick/memory
dzhwinter Feb 17, 2019
d0a2a20
polish code for reading. test=develop
dzhwinter Feb 17, 2019
6deac40
polish code for reading. test=develop
dzhwinter Feb 17, 2019
3787e61
polish code for reading. test=develop
dzhwinter Feb 18, 2019
684b572
polish code for reading. test=develop
dzhwinter Feb 18, 2019
c2a5d97
test=develop, uninstall protobuf on linux brefore install latest vers…
JiabinYang Feb 18, 2019
18afb77
polish code for reading. test=develop
dzhwinter Feb 18, 2019
591ad33
polish code for reading. test=develop
dzhwinter Feb 18, 2019
576e7d7
test=develop, fix pip
JiabinYang Feb 18, 2019
d386a71
test=develop, install protobuf in linux
JiabinYang Feb 18, 2019
d94a314
add reference. test=develop
dzhwinter Feb 18, 2019
642fd68
update by comment test=develop
Feb 18, 2019
5677c9d
update comment test=develop
Feb 18, 2019
0f8bd73
cleanup code test=develop
Feb 18, 2019
6cb0208
add reference. test=develop
dzhwinter Feb 18, 2019
3ce12b1
fix shape api doc
Feb 18, 2019
2ccbcb1
Merge remote-tracking branch 'ups/develop' into refine/pyramiddnn
tensor-tang Feb 18, 2019
40402d5
add emb seqpool jitcode
tensor-tang Feb 15, 2019
75fc792
fix when table width larger than 64
tensor-tang Feb 18, 2019
700495e
Fix FtrlOptimizer's API comment
velconia Feb 18, 2019
78d6bb3
test=develop, fix patch ELF install failed
JiabinYang Feb 18, 2019
28609b3
Merge pull request #15696 from dzhwinter/cherry-pick/memory
dzhwinter Feb 18, 2019
d79d2f6
Merge branch 'develop' of https://github.com/PaddlePaddle/Paddle into…
Feb 18, 2019
572c67e
Merge pull request #15775 from velconia/fix_api_ftrl_opt
luotao1 Feb 19, 2019
96b861a
test=develop, change md5 for patchELF
JiabinYang Feb 19, 2019
72061b0
Add ngraph op coverage (#15721)
baojun-nervana Feb 19, 2019
796e221
fix api arg0
sneaxiy Feb 18, 2019
e6ff549
small fix doc
sneaxiy Feb 18, 2019
3d0610b
fix data doc
sneaxiy Feb 18, 2019
56a5039
Correct the doc in Python API (#15725)
Xreki Feb 19, 2019
07ee40c
fix default value. test=develop
dzhwinter Feb 19, 2019
b20a21e
fix comments of PR 15529, test=develop
Feb 19, 2019
df23a6f
Enable cross_entropy operator for a ngraph engine (#15674)
mozga-intel Feb 19, 2019
9ae764c
fix doc
Feb 19, 2019
adea672
Merge pull request #15783 from sneaxiy/develop-fix-api-arg0
sneaxiy Feb 19, 2019
4c7b6e2
fix comment, test=develop
Feb 19, 2019
5aea2cd
Merge pull request #15652 from tensor-tang/refine/pyramiddnn
tensor-tang Feb 19, 2019
a661d0b
Merge pull request #15720 from JiabinYang/feature/update_protobuf
JiabinYang Feb 19, 2019
d5090c8
polish code test=develop
Feb 19, 2019
209b355
fix many warning
sneaxiy Feb 19, 2019
9c92d03
fix default value. test=develop
dzhwinter Feb 19, 2019
089d262
fix default value. test=develop
dzhwinter Feb 19, 2019
6deb17e
fix default value. test=develop
dzhwinter Feb 19, 2019
4b193db
polish code test=develop
Feb 19, 2019
70e5660
Merge branch 'fix-warnings' of https://github.com/sneaxiy/Paddle into…
sneaxiy Feb 19, 2019
9b8e0e2
fix enforce_test
sneaxiy Feb 19, 2019
6402424
Merge pull request #15773 from chengduoZH/fix_shape_api_doc
luotao1 Feb 19, 2019
794b90c
for backward compatibility
xuezhong Feb 19, 2019
57294fa
Merge branch 'develop' of https://github.com/PaddlePaddle/Paddle into…
xuezhong Feb 19, 2019
e1c707f
fix warnings (#15790)
tensor-tang Feb 19, 2019
6311ae5
remove legacy WITH_DOUBLE option
luotao1 Feb 19, 2019
688023e
remove legacy WITH_RDMA option
luotao1 Feb 19, 2019
ff2a838
remove legacy USE_EIGEN_FOR_BLAS option
luotao1 Feb 19, 2019
f522b44
remove legacy WITH_TIMER, WITH_DOC, ON_TRAVIS options
luotao1 Feb 19, 2019
9785991
remove legacy WITH_GOLANG, GLIDE_INSTALL options
luotao1 Feb 19, 2019
0d38817
remove legacy EIGEN_USE_THREADS, WITH_ARM_FP16 options
luotao1 Feb 19, 2019
b9d1bf2
remove leacy WITH_FLUID_ONLY option
luotao1 Feb 19, 2019
f52d372
remove legacy EXTERNAL_LIBS variable
luotao1 Feb 19, 2019
bd2fa73
Merge pull request #15794 from sneaxiy/fix-warnings
luotao1 Feb 19, 2019
f2e8409
Merge pull request #15795 from dzhwinter/fix/block_desc
dzhwinter Feb 20, 2019
c797a1f
remove legacy any.cmake
luotao1 Feb 20, 2019
60cb0b9
remove legacy $external_project_dependencies variable
luotao1 Feb 20, 2019
d331e97
fix compiler place compare
sneaxiy Feb 20, 2019
f1df9db
test=develop, update fluid.layers to LaryerHelper (#15797)
JiabinYang Feb 20, 2019
a0666b0
Merge pull request #15784 from dzhwinter/fix/add_test
dzhwinter Feb 20, 2019
4711d88
fix nms unittest in py36, test=develop
jerrywgz Feb 20, 2019
b28afef
Merge pull request #15801 from luotao1/legacy_option
luotao1 Feb 20, 2019
50ffed2
Merge pull request #15813 from luotao1/legacy_any
luotao1 Feb 20, 2019
8b40f2d
Feature/fast install 1.4 (#15668)
JiabinYang Feb 20, 2019
ba38be7
test=develop, fix protobuf runtime update and keep lib in 3.1.0
JiabinYang Feb 20, 2019
e38dd91
Refine cmake's download function. (#15512)
Xreki Feb 20, 2019
13ec2d3
Enable momentum operator for a ngraph engine (#15673)
mozga-intel Feb 20, 2019
9656852
Merge pull request #15827 from JiabinYang/feature/update_protobuf
Feb 20, 2019
fbb5404
fix test_parallel_executor_seresnex timeout (#15812)
Feb 20, 2019
971f3bc
fix params with only 1 dim (#15828)
seiriosPlus Feb 20, 2019
46fcade
add parameter description
xuezhong Feb 20, 2019
c420375
Merge pull request #15806 from sneaxiy/fix-compiler
sneaxiy Feb 21, 2019
c0d33f1
Merge pull request #15817 from jerrywgz/fix_nm_unittest_py36
jerrywgz Feb 21, 2019
a83e470
Profiler refine and add CUDA runtime api tracer (#15301)
cjld Feb 21, 2019
646b1f0
Add manylinux cuda10 (#15787)
typhoonzero Feb 21, 2019
98ec579
Merge pull request #15786 from liuwei1031/develop
dzhwinter Feb 21, 2019
6019054
Merge pull request #15716 from Yancey1989/refine_pg
panyx0718 Feb 21, 2019
a7e7d95
Merge pull request #15630 from xuezhong/fix_bug_adagrad2
xuezhong Feb 21, 2019
1c7bb0e
test=develop
cjld Feb 21, 2019
c9080f5
test=develop
cjld Feb 21, 2019
35a90e0
test=develop
cjld Feb 21, 2019
d2307e2
Merge pull request #15846 from cjld/fix_cupti
Feb 21, 2019
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
42 changes: 0 additions & 42 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -54,23 +54,12 @@ option(WITH_NGRAPH "Compile PaddlePaddle with nGraph support." OFF)
option(WITH_DSO "Compile PaddlePaddle with dynamic linked CUDA" ON)
option(WITH_TESTING "Compile PaddlePaddle with unit testing" OFF)
option(WITH_PYTHON "Compile PaddlePaddle with python interpreter" ON)
option(WITH_DOUBLE "Compile PaddlePaddle with double precision" OFF)
option(WITH_RDMA "Compile PaddlePaddle with RDMA support" OFF)
option(WITH_TIMER "Compile PaddlePaddle with stats timer" OFF)
option(WITH_PROFILER "Compile PaddlePaddle with GPU profiler and gperftools" OFF)
option(WITH_JEMALLOC "Compile PaddlePaddle with jemalloc" OFF)
option(WITH_DOC "Compile PaddlePaddle with documentation" OFF)
option(WITH_COVERAGE "Compile PaddlePaddle with code coverage" OFF)
option(COVERALLS_UPLOAD "Package code coverage data to coveralls" OFF)
option(ON_TRAVIS "Exclude special unit test on Travis CI" OFF)
option(WITH_FLUID_ONLY "Compile PaddlePaddle fluid only" OFF)
option(WITH_GOLANG "Compile PaddlePaddle with GOLANG" OFF)
option(GLIDE_INSTALL "Download and install go dependencies " ON)
option(WITH_DISTRIBUTE "Compile with distributed support" OFF)
option(WITH_PSLIB "Compile with pslib support" OFF)
option(USE_EIGEN_FOR_BLAS "Use matrix multiplication in Eigen" OFF)
option(EIGEN_USE_THREADS "Compile with multi-threaded Eigen" OFF)
option(WITH_ARM_FP16 "Use half precision support on armv8.2-a cpu" OFF)
option(WITH_CONTRIB "Compile the third-party contributation" OFF)
option(REPLACE_ENFORCE_GLOG "Replace PADDLE_ENFORCE with glog/CHECK for better debug." OFF)
option(WITH_ANAKIN "Compile with Anakin library" OFF)
Expand Down Expand Up @@ -105,8 +94,6 @@ endif()
if (WIN32)
set(WITH_DISTRIBUTE OFF CACHE STRING
"Disable DISTRIBUTE when compiling for Windows" FORCE)
set(WITH_FLUID_ONLY ON CACHE STRING
"Enable FLUID_ONLY when compiling for Windows" FORCE)
endif()

set(THIRD_PARTY_PATH "${CMAKE_BINARY_DIR}/third_party" CACHE STRING
Expand Down Expand Up @@ -148,7 +135,6 @@ include(external/openblas) # download, build, install openblas
include(external/mkldnn) # download, build, install mkldnn
include(external/ngraph) # download, build, install nGraph
include(external/boost) # download boost
include(external/any) # download libn::any
include(external/eigen) # download eigen3
include(external/pybind11) # download pybind11
include(external/cares)
Expand Down Expand Up @@ -225,46 +211,18 @@ include(generic) # simplify cmake module
include(package) # set paddle packages
include(ccache) # set ccache for compilation
include(util) # set unittest and link libs
include(rdma) # set rdma libraries
include(version) # set PADDLE_VERSION
include(coveralls) # set code coverage
include(inference_lib) # add paddle fluid inference libraries


include_directories("${PADDLE_SOURCE_DIR}")

set(EXTERNAL_LIBS
gflags
glog
${CBLAS_LIBRARIES}
protobuf
zlib
${PYTHON_LIBRARIES}
)

if(WITH_PSLIB)
list(APPEND EXTERNAL_LIBS pslib)
list(APPEND EXTERNAL_LIBS pslib_brpc)
list(APPEND EXTERNAL_LIBS libmct)
endif(WITH_PSLIB)

if(WITH_AMD_GPU)
find_package(HIP)
include(hip)
endif(WITH_AMD_GPU)

if(WITH_MKLML)
list(APPEND EXTERNAL_LIBS ${MKLML_IOMP_LIB})
endif()

if(WITH_LIBXSMM)
list(APPEND EXTERNAL_LIBS ${LIBXSMM_LIBS})
endif()

if(WITH_MKLDNN)
list(APPEND EXTERNAL_LIBS ${MKLDNN_LIB})
endif()

set(PADDLE_PYTHON_BUILD_DIR "${CMAKE_CURRENT_BINARY_DIR}/python/build")

set(CMAKE_CXX_FLAGS_RELWITHDEBINFO "-O3 -g -DNDEBUG")
Expand Down
74 changes: 0 additions & 74 deletions cmake/configure.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -20,31 +20,10 @@ if(WITH_DSO)
add_definitions(-DPADDLE_USE_DSO)
endif(WITH_DSO)

if(WITH_DOUBLE)
add_definitions(-DPADDLE_TYPE_DOUBLE)
endif(WITH_DOUBLE)

if(WITH_ARM_FP16)
add_definitions(-DPADDLE_ARM_FP16)
add_definitions("-march=armv8.2-a+fp16+simd")
endif(WITH_ARM_FP16)

if(WITH_TESTING)
add_definitions(-DPADDLE_WITH_TESTING)
endif(WITH_TESTING)

if(NOT WITH_TIMER)
add_definitions(-DPADDLE_DISABLE_TIMER)
endif(NOT WITH_TIMER)

if(USE_EIGEN_FOR_BLAS)
add_definitions(-DPADDLE_USE_EIGEN_FOR_BLAS)
endif(USE_EIGEN_FOR_BLAS)

if(EIGEN_USE_THREADS)
add_definitions(-DEIGEN_USE_THREADS)
endif(EIGEN_USE_THREADS)

if(NOT WITH_PROFILER)
add_definitions(-DPADDLE_DISABLE_PROFILER)
endif(NOT WITH_PROFILER)
Expand Down Expand Up @@ -78,10 +57,6 @@ if(WIN32)
endif(NOT MSVC)
endif(WIN32)

if(NOT WITH_GOLANG)
add_definitions(-DPADDLE_WITHOUT_GOLANG)
endif(NOT WITH_GOLANG)

if(WITH_PSLIB)
add_definitions(-DPADDLE_WITH_PSLIB)
endif()
Expand Down Expand Up @@ -171,55 +146,6 @@ if(WITH_DISTRIBUTE)
add_definitions(-DPADDLE_WITH_DISTRIBUTE)
endif()

if(WITH_GOLANG)
# we need to symlink Paddle directory into GOPATH. If we
# don't do it and we have code that depends on Paddle, go
# get ./... will download a new Paddle repo from Github,
# without the changes in our current Paddle repo that we
# want to build.
set(GOPATH "${CMAKE_CURRENT_BINARY_DIR}/go")
file(MAKE_DIRECTORY ${GOPATH})
set(PADDLE_IN_GOPATH "${GOPATH}/src/github.com/PaddlePaddle/Paddle")
file(MAKE_DIRECTORY "${PADDLE_IN_GOPATH}")
set(PADDLE_GO_PATH "${CMAKE_SOURCE_DIR}/go")

add_custom_target(go_path)
add_custom_command(TARGET go_path
# Symlink Paddle directory into GOPATH
COMMAND mkdir -p ${PADDLE_IN_GOPATH}
COMMAND rm -rf ${PADDLE_IN_GOPATH}
COMMAND ln -sf ${CMAKE_SOURCE_DIR} ${PADDLE_IN_GOPATH}
# Automatically get all dependencies specified in the source code
# We can't run `go get -d ./...` for every target, because
# multiple `go get` can not run concurrently, but make need to be
# able to run with multiple jobs.
WORKING_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}
)

if (GLIDE_INSTALL)
if(EXISTS $ENV{GOPATH}/bin/glide)
set(GLIDE "$ENV{GOPATH}/bin/glide")
else()
message(FATAL_ERROR "no glide executeble found: $ENV{GOPATH}/bin/glide")
endif()

# this command will only run when the file it depends is missing
# or has changed, or the output is missing.
add_custom_command(OUTPUT ${CMAKE_BINARY_DIR}/glide
COMMAND env GOPATH=${GOPATH} ${GLIDE} install
COMMAND touch ${CMAKE_BINARY_DIR}/glide
DEPENDS ${PADDLE_SOURCE_DIR}/go/glide.lock
WORKING_DIRECTORY "${PADDLE_IN_GOPATH}/go"
)

# depends on the custom command which outputs
# ${CMAKE_BINARY_DIR}/glide, the custom command does not need to
# run every time this target is built.
add_custom_target(go_vendor DEPENDS ${CMAKE_BINARY_DIR}/glide go_path)
endif()

endif(WITH_GOLANG)

if(WITH_GRPC)
add_definitions(-DPADDLE_WITH_GRPC)
endif(WITH_GRPC)
Expand Down
3 changes: 0 additions & 3 deletions cmake/cuda.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -168,10 +168,7 @@ elseif (${CUDA_VERSION} LESS 11.0) # CUDA 10.x
endif()

include_directories(${CUDA_INCLUDE_DIRS})
list(APPEND EXTERNAL_LIBS ${CUDA_LIBRARIES} ${CUDA_rt_LIBRARY})
if(NOT WITH_DSO)
# TODO(panyx0718): CUPTI only allows DSO?
list(APPEND EXTERNAL_LIBS ${CUDNN_LIBRARY} ${CUPTI_LIBRARY} ${CUDA_CUBLAS_LIBRARIES} ${CUDA_curand_LIBRARY} ${NCCL_LIBRARY})
if(WIN32)
set_property(GLOBAL PROPERTY CUDA_MODULES ${CUDNN_LIBRARY} ${CUDA_CUBLAS_LIBRARIES} ${CUDA_curand_LIBRARY})
endif(WIN32)
Expand Down
2 changes: 0 additions & 2 deletions cmake/external/anakin.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -74,5 +74,3 @@ add_dependencies(anakin_shared extern_anakin)
add_library(anakin_saber SHARED IMPORTED GLOBAL)
set_property(TARGET anakin_saber PROPERTY IMPORTED_LOCATION ${ANAKIN_SABER_LIB})
add_dependencies(anakin_saber extern_anakin)

list(APPEND external_project_dependencies anakin_shared anakin_saber)
31 changes: 0 additions & 31 deletions cmake/external/any.cmake

This file was deleted.

1 change: 0 additions & 1 deletion cmake/external/boost.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -57,5 +57,4 @@ else()
endif()

add_dependencies(boost ${BOOST_PROJECT})
list(APPEND external_project_dependencies boost)
set(Boost_INCLUDE_DIR ${BOOST_INCLUDE_DIR})
2 changes: 0 additions & 2 deletions cmake/external/brpc.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -69,5 +69,3 @@ SET_PROPERTY(TARGET brpc PROPERTY IMPORTED_LOCATION ${BRPC_LIBRARIES})
ADD_DEPENDENCIES(brpc extern_brpc)

add_definitions(-DBRPC_WITH_GLOG)

LIST(APPEND external_project_dependencies brpc)
2 changes: 0 additions & 2 deletions cmake/external/cub.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -31,5 +31,3 @@ else()
endif()

add_dependencies(cub extern_cub)

LIST(APPEND external_project_dependencies cub)
2 changes: 0 additions & 2 deletions cmake/external/dlpack.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -27,5 +27,3 @@ else()
endif()

add_dependencies(dlpack extern_dlpack)

LIST(APPEND external_project_dependencies dlpack)
2 changes: 0 additions & 2 deletions cmake/external/eigen.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -52,5 +52,3 @@ else()
endif()

add_dependencies(eigen3 extern_eigen3)

LIST(APPEND external_project_dependencies eigen3)
2 changes: 0 additions & 2 deletions cmake/external/gflags.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -61,8 +61,6 @@ ADD_LIBRARY(gflags STATIC IMPORTED GLOBAL)
SET_PROPERTY(TARGET gflags PROPERTY IMPORTED_LOCATION ${GFLAGS_LIBRARIES})
ADD_DEPENDENCIES(gflags extern_gflags)

LIST(APPEND external_project_dependencies gflags)

# On Windows (including MinGW), the Shlwapi library is used by gflags if available.
if (WIN32)
include(CheckIncludeFileCXX)
Expand Down
2 changes: 0 additions & 2 deletions cmake/external/glog.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -72,5 +72,3 @@ ADD_LIBRARY(glog STATIC IMPORTED GLOBAL)
SET_PROPERTY(TARGET glog PROPERTY IMPORTED_LOCATION ${GLOG_LIBRARIES})
ADD_DEPENDENCIES(glog extern_glog gflags)
LINK_LIBRARIES(glog gflags)

LIST(APPEND external_project_dependencies glog)
1 change: 0 additions & 1 deletion cmake/external/gtest.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -79,5 +79,4 @@ IF(WITH_TESTING OR (WITH_DISTRIBUTE AND NOT WITH_GRPC))
SET_PROPERTY(TARGET gtest_main PROPERTY IMPORTED_LOCATION ${GTEST_MAIN_LIBRARIES})
ADD_DEPENDENCIES(gtest_main extern_gtest)

LIST(APPEND external_project_dependencies gtest gtest_main)
ENDIF(WITH_TESTING OR (WITH_DISTRIBUTE AND NOT WITH_GRPC))
3 changes: 0 additions & 3 deletions cmake/external/leveldb.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,3 @@ ADD_DEPENDENCIES(extern_leveldb snappy)
ADD_LIBRARY(leveldb STATIC IMPORTED GLOBAL)
SET_PROPERTY(TARGET leveldb PROPERTY IMPORTED_LOCATION ${LEVELDB_LIBRARIES})
ADD_DEPENDENCIES(leveldb extern_leveldb)

LIST(APPEND external_project_dependencies leveldb)

3 changes: 0 additions & 3 deletions cmake/external/libmct.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,4 @@ else()
add_library(libmct INTERFACE)
endif()

#ADD_LIBRARY(libmct SHARED IMPORTED GLOBAL)
ADD_DEPENDENCIES(libmct ${LIBMCT_PROJECT})
LIST(APPEND external_project_dependencies libmct)

2 changes: 0 additions & 2 deletions cmake/external/libxsmm.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -53,5 +53,3 @@ MESSAGE(STATUS "Libxsmm library: ${LIBXSMM_LIBS}")
include_directories(${LIBXSMM_INCLUDE_DIR})
ADD_DEFINITIONS(-DPADDLE_WITH_LIBXSMM)
ADD_DEPENDENCIES(libxsmm extern_libxsmm)
LIST(APPEND external_project_dependencies libxsmm)

1 change: 0 additions & 1 deletion cmake/external/mkldnn.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,6 @@ SET_PROPERTY(TARGET shared_mkldnn PROPERTY IMPORTED_LOCATION ${MKLDNN_LIB})
ADD_DEPENDENCIES(shared_mkldnn ${MKLDNN_PROJECT})
MESSAGE(STATUS "MKLDNN library: ${MKLDNN_LIB}")
add_definitions(-DPADDLE_WITH_MKLDNN)
LIST(APPEND external_project_dependencies shared_mkldnn)

# generate a static dummy target to track mkldnn dependencies
# for cc_library(xxx SRCS xxx.c DEPS mkldnn)
Expand Down
1 change: 0 additions & 1 deletion cmake/external/mklml.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -73,4 +73,3 @@ INCLUDE_DIRECTORIES(${MKLML_INC_DIR})
ADD_LIBRARY(mklml SHARED IMPORTED GLOBAL)
SET_PROPERTY(TARGET mklml PROPERTY IMPORTED_LOCATION ${MKLML_LIB})
ADD_DEPENDENCIES(mklml ${MKLML_PROJECT})
LIST(APPEND external_project_dependencies mklml)
1 change: 0 additions & 1 deletion cmake/external/ngraph.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -77,4 +77,3 @@ add_dependencies(ngraph ${NGRAPH_PROJECT})
target_compile_definitions(ngraph INTERFACE -DPADDLE_WITH_NGRAPH)
target_include_directories(ngraph INTERFACE ${NGRAPH_INC_DIR})
target_link_libraries(ngraph INTERFACE ${NGRAPH_SHARED_LIB})
LIST(APPEND external_project_dependencies ngraph)
6 changes: 0 additions & 6 deletions cmake/external/openblas.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -11,11 +11,6 @@
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.

IF(USE_EIGEN_FOR_BLAS)
return()
ENDIF(USE_EIGEN_FOR_BLAS)

INCLUDE(cblas)

IF(NOT ${CBLAS_FOUND})
Expand Down Expand Up @@ -91,7 +86,6 @@ ENDIF()

IF(NOT ${CBLAS_FOUND})
ADD_DEPENDENCIES(cblas extern_openblas)
LIST(APPEND external_project_dependencies cblas)
ELSE()
IF("${CBLAS_PROVIDER}" STREQUAL "MKLML")
ADD_DEPENDENCIES(cblas mklml)
Expand Down
3 changes: 1 addition & 2 deletions cmake/external/protobuf.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,6 @@ macro(PROMPT_PROTOBUF_LIB)
ADD_DEPENDENCIES(protoc ${dep})
ENDFOREACH()

LIST(APPEND external_project_dependencies protobuf)
RETURN()
endmacro()
macro(SET_PROTOBUF_VERSION)
Expand Down Expand Up @@ -231,7 +230,7 @@ FUNCTION(build_protobuf TARGET_NAME BUILD_FOR_HOST)
)
ENDFUNCTION()

SET(PROTOBUF_VERSION 3.1)
SET(PROTOBUF_VERSION 3.1.0)

IF(NOT PROTOBUF_FOUND)
build_protobuf(extern_protobuf FALSE)
Expand Down
1 change: 0 additions & 1 deletion cmake/external/pslib.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -70,4 +70,3 @@ ExternalProject_Add(
ADD_LIBRARY(pslib SHARED IMPORTED GLOBAL)
SET_PROPERTY(TARGET pslib PROPERTY IMPORTED_LOCATION ${PSLIB_LIB})
ADD_DEPENDENCIES(pslib ${PSLIB_PROJECT})
LIST(APPEND external_project_dependencies pslib)
1 change: 0 additions & 1 deletion cmake/external/pslib_brpc.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -70,4 +70,3 @@ ExternalProject_Add(
ADD_LIBRARY(pslib_brpc SHARED IMPORTED GLOBAL)
SET_PROPERTY(TARGET pslib_brpc PROPERTY IMPORTED_LOCATION ${PSLIB_BRPC_LIB})
ADD_DEPENDENCIES(pslib_brpc ${PSLIB_BRPC_PROJECT})
LIST(APPEND external_project_dependencies pslib_brpc)
2 changes: 0 additions & 2 deletions cmake/external/threadpool.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -26,5 +26,3 @@ else()
endif()

add_dependencies(simple_threadpool extern_threadpool)

LIST(APPEND external_project_dependencies simple_threadpool)
2 changes: 0 additions & 2 deletions cmake/external/warpctc.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -83,5 +83,3 @@ INCLUDE_DIRECTORIES(${THIRD_PARTY_PATH}/install) # For Paddle code to include wa
ADD_LIBRARY(warpctc SHARED IMPORTED GLOBAL)
SET_PROPERTY(TARGET warpctc PROPERTY IMPORTED_LOCATION ${WARPCTC_LIBRARIES})
ADD_DEPENDENCIES(warpctc extern_warpctc)

LIST(APPEND external_project_dependencies warpctc)
1 change: 0 additions & 1 deletion cmake/external/xbyak.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -55,4 +55,3 @@ else()
endif()

add_dependencies(xbyak ${XBYAK_PROJECT})
list(APPEND external_project_dependencies xbyak)
2 changes: 0 additions & 2 deletions cmake/external/xxhash.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -71,5 +71,3 @@ add_library(xxhash STATIC IMPORTED GLOBAL)
set_property(TARGET xxhash PROPERTY IMPORTED_LOCATION ${XXHASH_LIBRARIES})
include_directories(${XXHASH_INCLUDE_DIR})
add_dependencies(xxhash extern_xxhash)

LIST(APPEND external_project_dependencies xxhash)
Loading