Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
PaddlePaddle
PaddleDetection
提交
50ffed27
P
PaddleDetection
项目概览
PaddlePaddle
/
PaddleDetection
大约 1 年 前同步成功
通知
695
Star
11112
Fork
2696
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
184
列表
看板
标记
里程碑
合并请求
40
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
P
PaddleDetection
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
184
Issue
184
列表
看板
标记
里程碑
合并请求
40
合并请求
40
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
未验证
提交
50ffed27
编写于
2月 20, 2019
作者:
T
Tao Luo
提交者:
GitHub
2月 20, 2019
浏览文件
操作
浏览文件
下载
差异文件
Merge pull request #15813 from luotao1/legacy_any
remove legacy any.cmake
上级
b28afef7
60cb0b97
变更
28
隐藏空白更改
内联
并排
Showing
28 changed file
with
4 addition
and
89 deletion
+4
-89
CMakeLists.txt
CMakeLists.txt
+0
-1
cmake/external/anakin.cmake
cmake/external/anakin.cmake
+0
-2
cmake/external/any.cmake
cmake/external/any.cmake
+0
-31
cmake/external/boost.cmake
cmake/external/boost.cmake
+0
-1
cmake/external/brpc.cmake
cmake/external/brpc.cmake
+0
-2
cmake/external/cub.cmake
cmake/external/cub.cmake
+0
-2
cmake/external/dlpack.cmake
cmake/external/dlpack.cmake
+0
-2
cmake/external/eigen.cmake
cmake/external/eigen.cmake
+0
-2
cmake/external/gflags.cmake
cmake/external/gflags.cmake
+0
-2
cmake/external/glog.cmake
cmake/external/glog.cmake
+0
-2
cmake/external/gtest.cmake
cmake/external/gtest.cmake
+0
-1
cmake/external/leveldb.cmake
cmake/external/leveldb.cmake
+0
-3
cmake/external/libmct.cmake
cmake/external/libmct.cmake
+0
-3
cmake/external/libxsmm.cmake
cmake/external/libxsmm.cmake
+0
-2
cmake/external/mkldnn.cmake
cmake/external/mkldnn.cmake
+0
-1
cmake/external/mklml.cmake
cmake/external/mklml.cmake
+0
-1
cmake/external/ngraph.cmake
cmake/external/ngraph.cmake
+0
-1
cmake/external/openblas.cmake
cmake/external/openblas.cmake
+0
-1
cmake/external/protobuf.cmake
cmake/external/protobuf.cmake
+0
-1
cmake/external/pslib.cmake
cmake/external/pslib.cmake
+0
-1
cmake/external/pslib_brpc.cmake
cmake/external/pslib_brpc.cmake
+0
-1
cmake/external/threadpool.cmake
cmake/external/threadpool.cmake
+0
-2
cmake/external/warpctc.cmake
cmake/external/warpctc.cmake
+0
-2
cmake/external/xbyak.cmake
cmake/external/xbyak.cmake
+0
-1
cmake/external/xxhash.cmake
cmake/external/xxhash.cmake
+0
-2
cmake/external/zlib.cmake
cmake/external/zlib.cmake
+0
-2
paddle/fluid/platform/CMakeLists.txt
paddle/fluid/platform/CMakeLists.txt
+1
-1
python/CMakeLists.txt
python/CMakeLists.txt
+3
-16
未找到文件。
CMakeLists.txt
浏览文件 @
50ffed27
...
...
@@ -135,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
)
...
...
cmake/external/anakin.cmake
浏览文件 @
50ffed27
...
...
@@ -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
)
cmake/external/any.cmake
已删除
100644 → 0
浏览文件 @
b28afef7
INCLUDE
(
ExternalProject
)
SET
(
ANY_SOURCE_DIR
${
THIRD_PARTY_PATH
}
/any
)
INCLUDE_DIRECTORIES
(
${
ANY_SOURCE_DIR
}
/src/extern_lib_any
)
ExternalProject_Add
(
extern_lib_any
${
EXTERNAL_PROJECT_LOG_ARGS
}
GIT_REPOSITORY
"https://github.com/PaddlePaddle/any.git"
GIT_TAG
"15595d8324be9e8a9a80d9ae442fdd12bd66df5d"
PREFIX
${
ANY_SOURCE_DIR
}
UPDATE_COMMAND
""
CONFIGURE_COMMAND
""
BUILD_COMMAND
""
INSTALL_COMMAND
""
TEST_COMMAND
""
)
if
(
${
CMAKE_VERSION
}
VERSION_LESS
"3.3.0"
)
set
(
dummyfile
${
CMAKE_CURRENT_BINARY_DIR
}
/lib_any_dummy.c
)
file
(
WRITE
${
dummyfile
}
"const char * dummy_any =
\"
${
dummyfile
}
\"
;"
)
add_library
(
lib_any STATIC
${
dummyfile
}
)
else
()
add_library
(
lib_any INTERFACE
)
endif
()
add_dependencies
(
lib_any extern_lib_any
)
add_definitions
(
-DANY_IMPL_ANY_CAST_MOVEABLE
)
LIST
(
APPEND external_project_dependencies lib_any
)
cmake/external/boost.cmake
浏览文件 @
50ffed27
...
...
@@ -57,5 +57,4 @@ else()
endif
()
add_dependencies
(
boost
${
BOOST_PROJECT
}
)
list
(
APPEND external_project_dependencies boost
)
set
(
Boost_INCLUDE_DIR
${
BOOST_INCLUDE_DIR
}
)
cmake/external/brpc.cmake
浏览文件 @
50ffed27
...
...
@@ -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
)
cmake/external/cub.cmake
浏览文件 @
50ffed27
...
...
@@ -31,5 +31,3 @@ else()
endif
()
add_dependencies
(
cub extern_cub
)
LIST
(
APPEND external_project_dependencies cub
)
cmake/external/dlpack.cmake
浏览文件 @
50ffed27
...
...
@@ -27,5 +27,3 @@ else()
endif
()
add_dependencies
(
dlpack extern_dlpack
)
LIST
(
APPEND external_project_dependencies dlpack
)
cmake/external/eigen.cmake
浏览文件 @
50ffed27
...
...
@@ -52,5 +52,3 @@ else()
endif
()
add_dependencies
(
eigen3 extern_eigen3
)
LIST
(
APPEND external_project_dependencies eigen3
)
cmake/external/gflags.cmake
浏览文件 @
50ffed27
...
...
@@ -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
)
...
...
cmake/external/glog.cmake
浏览文件 @
50ffed27
...
...
@@ -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
)
cmake/external/gtest.cmake
浏览文件 @
50ffed27
...
...
@@ -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
))
cmake/external/leveldb.cmake
浏览文件 @
50ffed27
...
...
@@ -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
)
cmake/external/libmct.cmake
浏览文件 @
50ffed27
...
...
@@ -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
)
cmake/external/libxsmm.cmake
浏览文件 @
50ffed27
...
...
@@ -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
)
cmake/external/mkldnn.cmake
浏览文件 @
50ffed27
...
...
@@ -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)
...
...
cmake/external/mklml.cmake
浏览文件 @
50ffed27
...
...
@@ -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
)
cmake/external/ngraph.cmake
浏览文件 @
50ffed27
...
...
@@ -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
)
cmake/external/openblas.cmake
浏览文件 @
50ffed27
...
...
@@ -86,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
)
...
...
cmake/external/protobuf.cmake
浏览文件 @
50ffed27
...
...
@@ -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
)
...
...
cmake/external/pslib.cmake
浏览文件 @
50ffed27
...
...
@@ -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
)
cmake/external/pslib_brpc.cmake
浏览文件 @
50ffed27
...
...
@@ -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
)
cmake/external/threadpool.cmake
浏览文件 @
50ffed27
...
...
@@ -26,5 +26,3 @@ else()
endif
()
add_dependencies
(
simple_threadpool extern_threadpool
)
LIST
(
APPEND external_project_dependencies simple_threadpool
)
cmake/external/warpctc.cmake
浏览文件 @
50ffed27
...
...
@@ -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
)
cmake/external/xbyak.cmake
浏览文件 @
50ffed27
...
...
@@ -55,4 +55,3 @@ else()
endif
()
add_dependencies
(
xbyak
${
XBYAK_PROJECT
}
)
list
(
APPEND external_project_dependencies xbyak
)
cmake/external/xxhash.cmake
浏览文件 @
50ffed27
...
...
@@ -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
)
cmake/external/zlib.cmake
浏览文件 @
50ffed27
...
...
@@ -57,5 +57,3 @@ ENDIF(WIN32)
ADD_LIBRARY
(
zlib STATIC IMPORTED GLOBAL
)
SET_PROPERTY
(
TARGET zlib PROPERTY IMPORTED_LOCATION
${
ZLIB_LIBRARIES
}
)
ADD_DEPENDENCIES
(
zlib extern_zlib
)
LIST
(
APPEND external_project_dependencies zlib
)
paddle/fluid/platform/CMakeLists.txt
浏览文件 @
50ffed27
...
...
@@ -36,7 +36,7 @@ cc_test(cpu_info_test SRCS cpu_info_test.cc DEPS cpu_info)
nv_library
(
gpu_info SRCS gpu_info.cc DEPS gflags glog enforce
)
cc_library
(
place SRCS place.cc DEPS enforce boost
lib_any
)
cc_library
(
place SRCS place.cc DEPS enforce boost
)
cc_test
(
place_test SRCS place_test.cc DEPS place glog gflags
)
add_subdirectory
(
dynload
)
...
...
python/CMakeLists.txt
浏览文件 @
50ffed27
...
...
@@ -4,18 +4,6 @@ set(PY_FILES paddle/__init__.py
${
UTILS_PY_FILES
}
${
FLUID_PY_FILES
}
)
set
(
MKL_SHARED_LIBS
""
)
set
(
MKL_DEPENDS
""
)
if
(
WITH_MKLML
)
list
(
APPEND MKL_SHARED_LIBS
${
MKLML_LIB
}
${
MKLML_IOMP_LIB
}
)
list
(
APPEND MKL_DEPENDS mklml
)
endif
()
if
(
WITH_MKLDNN
)
list
(
APPEND MKL_SHARED_LIBS
"
${
MKLDNN_SHARED_LIB
}
"
)
list
(
APPEND MKL_DEPENDS mkldnn mkldnn_shared_lib
)
endif
()
if
(
WITH_GPU
)
SET
(
PACKAGE_NAME
"paddlepaddle-gpu"
)
else
()
...
...
@@ -42,7 +30,7 @@ IF(WIN32)
COMMAND
${
CMAKE_COMMAND
}
-E env
${
py_env
}
${
PYTHON_EXECUTABLE
}
setup.py bdist_wheel
COMMAND
${
CMAKE_COMMAND
}
-E touch
${
PADDLE_PYTHON_BUILD_DIR
}
/.timestamp
COMMAND
${
CMAKE_COMMAND
}
-E remove_directory
${
PADDLE_PYTHON_BUILD_DIR
}
/lib-python
DEPENDS copy_paddle_pybind
${
FLUID_CORE
}
framework_py_proto profiler_py_proto
${
PY_FILES
}
${
external_project_dependencies
}
${
COPY_PADDLE_MASTER
}
)
DEPENDS copy_paddle_pybind
${
FLUID_CORE
}
framework_py_proto profiler_py_proto
${
PY_FILES
}
)
ELSE
(
WIN32
)
add_custom_command
(
OUTPUT
${
PADDLE_PYTHON_BUILD_DIR
}
/.timestamp
COMMAND touch stub.cc
...
...
@@ -51,11 +39,10 @@ ELSE(WIN32)
COMMAND
${
CMAKE_COMMAND
}
-E touch
${
PADDLE_PYTHON_BUILD_DIR
}
/.timestamp
COMMAND
${
CMAKE_COMMAND
}
-E remove_directory
${
PADDLE_PYTHON_BUILD_DIR
}
/lib-python
COMMAND
${
CMAKE_COMMAND
}
-E copy_directory
${
PADDLE_PYTHON_BUILD_DIR
}
/lib*
${
PADDLE_PYTHON_BUILD_DIR
}
/lib-python
DEPENDS copy_paddle_pybind
${
FLUID_CORE
}
framework_py_proto profiler_py_proto
${
PY_FILES
}
${
external_project_dependencies
}
${
COPY_PADDLE_MASTER
}
)
DEPENDS copy_paddle_pybind
${
FLUID_CORE
}
framework_py_proto profiler_py_proto
${
PY_FILES
}
)
ENDIF
()
set
(
paddle_python_deps
${
PADDLE_PYTHON_BUILD_DIR
}
/.timestamp
${
MKL_DEPENDS
}
${
external_project_dependencies
}
)
add_custom_target
(
paddle_python ALL DEPENDS
${
paddle_python_deps
}
)
add_custom_target
(
paddle_python ALL DEPENDS
${
PADDLE_PYTHON_BUILD_DIR
}
/.timestamp
)
set
(
PADDLE_PYTHON_PACKAGE_DIR
${
CMAKE_CURRENT_BINARY_DIR
}
/dist/
)
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录