Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
机器未来
Paddle
提交
ba6f645e
P
Paddle
项目概览
机器未来
/
Paddle
与 Fork 源项目一致
Fork自
PaddlePaddle / Paddle
通知
1
Star
1
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
1
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
P
Paddle
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
1
Issue
1
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
未验证
提交
ba6f645e
编写于
11月 29, 2021
作者:
S
Sing_chan
提交者:
GitHub
11月 29, 2021
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
unity variable name in third_party cmake files (#37590)
上级
4d24d352
变更
15
显示空白变更内容
内联
并排
Showing
15 changed file
with
42 addition
and
45 deletion
+42
-45
cmake/external/brpc.cmake
cmake/external/brpc.cmake
+2
-2
cmake/external/cinn.cmake
cmake/external/cinn.cmake
+2
-2
cmake/external/dirent.cmake
cmake/external/dirent.cmake
+4
-5
cmake/external/dlpack.cmake
cmake/external/dlpack.cmake
+3
-3
cmake/external/lapack.cmake
cmake/external/lapack.cmake
+0
-2
cmake/external/leveldb.cmake
cmake/external/leveldb.cmake
+4
-4
cmake/external/libmct.cmake
cmake/external/libmct.cmake
+3
-3
cmake/external/libxsmm.cmake
cmake/external/libxsmm.cmake
+2
-2
cmake/external/lite.cmake
cmake/external/lite.cmake
+5
-5
cmake/external/mklml.cmake
cmake/external/mklml.cmake
+1
-1
cmake/external/pslib.cmake
cmake/external/pslib.cmake
+3
-3
cmake/external/pslib_brpc.cmake
cmake/external/pslib_brpc.cmake
+3
-3
cmake/external/rocksdb.cmake
cmake/external/rocksdb.cmake
+5
-5
cmake/external/snappy.cmake
cmake/external/snappy.cmake
+2
-2
cmake/external/xpu.cmake
cmake/external/xpu.cmake
+3
-3
未找到文件。
cmake/external/brpc.cmake
浏览文件 @
ba6f645e
...
...
@@ -25,7 +25,7 @@ SET_PROPERTY(TARGET ssl PROPERTY IMPORTED_LOCATION ${OPENSSL_SSL_LIBRARY})
ADD_LIBRARY
(
crypto SHARED IMPORTED GLOBAL
)
SET_PROPERTY
(
TARGET crypto PROPERTY IMPORTED_LOCATION
${
OPENSSL_CRYPTO_LIBRARY
}
)
SET
(
BRPC_
SOURCES_DIR
${
THIRD_PARTY_PATH
}
/brpc
)
SET
(
BRPC_
PREFIX_DIR
${
THIRD_PARTY_PATH
}
/brpc
)
SET
(
BRPC_INSTALL_DIR
${
THIRD_PARTY_PATH
}
/install/brpc
)
SET
(
BRPC_INCLUDE_DIR
"
${
BRPC_INSTALL_DIR
}
/include"
CACHE PATH
"brpc include directory."
FORCE
)
SET
(
BRPC_LIBRARIES
"
${
BRPC_INSTALL_DIR
}
/lib/libbrpc.a"
CACHE FILEPATH
"brpc library."
FORCE
)
...
...
@@ -42,7 +42,7 @@ ExternalProject_Add(
# TODO(gongwb): change to de newst repo when they changed
GIT_REPOSITORY
"https://github.com/wangjiawei04/brpc"
GIT_TAG
"e203afb794caf027da0f1e0776443e7d20c0c28e"
PREFIX
${
BRPC_
SOURCES
_DIR
}
PREFIX
${
BRPC_
PREFIX
_DIR
}
UPDATE_COMMAND
""
CMAKE_ARGS -DCMAKE_CXX_COMPILER=
${
CMAKE_CXX_COMPILER
}
-DCMAKE_C_COMPILER=
${
CMAKE_C_COMPILER
}
...
...
cmake/external/cinn.cmake
浏览文件 @
ba6f645e
...
...
@@ -25,7 +25,7 @@ add_definitions(-w)
# Build CINN from Git External Project
######################################
include
(
ExternalProject
)
set
(
CINN_
SOURCE
_DIR
${
THIRD_PARTY_PATH
}
/CINN
)
set
(
CINN_
PREFIX
_DIR
${
THIRD_PARTY_PATH
}
/CINN
)
# TODO(zhhsplendid): Modify git tag after we have release tag
set
(
CINN_GIT_TAG develop
)
set
(
CINN_OPTIONAL_ARGS -DPY_VERSION=
${
PY_VERSION
}
...
...
@@ -42,7 +42,7 @@ ExternalProject_Add(
${
EXTERNAL_PROJECT_LOG_ARGS
}
GIT_REPOSITORY
"
${
GIT_URL
}
/PaddlePaddle/CINN.git"
GIT_TAG
${
CINN_GIT_TAG
}
PREFIX
${
CINN_
SOURCE
_DIR
}
PREFIX
${
CINN_
PREFIX
_DIR
}
BUILD_COMMAND
${
CINN_BUILD_COMMAND
}
INSTALL_COMMAND
""
CMAKE_ARGS
${
CINN_OPTIONAL_ARGS
}
)
...
...
cmake/external/dirent.cmake
浏览文件 @
ba6f645e
...
...
@@ -18,8 +18,7 @@
INCLUDE
(
ExternalProject
)
SET
(
DIRENT_PREFIX_DIR
${
THIRD_PARTY_PATH
}
/dirent
)
SET
(
DIRENT_SOURCE_DIR
${
THIRD_PARTY_PATH
}
/dirent/src/extern_dirent
)
SET
(
DIRENT_INCLUDE_DIR
${
DIRENT_SOURCE_DIR
}
/include
)
SET
(
DIRENT_INCLUDE_DIR
${
THIRD_PARTY_PATH
}
/dirent/src/extern_dirent/include
)
include_directories
(
${
DIRENT_INCLUDE_DIR
}
)
...
...
cmake/external/dlpack.cmake
浏览文件 @
ba6f645e
cmake/external/lapack.cmake
浏览文件 @
ba6f645e
...
...
@@ -17,7 +17,6 @@ INCLUDE (ExternalProject)
SET
(
LAPACK_PREFIX_DIR
${
THIRD_PARTY_PATH
}
/lapack
)
SET
(
LAPACK_SOURCE_DIR
${
THIRD_PARTY_PATH
}
/lapack/src/extern_lapack
)
SET
(
LAPACK_INSTALL_DIR
${
THIRD_PARTY_PATH
}
/install/lapack
)
SET
(
LAPACK_INCLUDE_DIR
${
LAPACK_SOURCE_DIR
}
)
SET
(
LAPACK_LIB_DIR
${
LAPACK_INSTALL_DIR
}
/lib
)
# Note(zhouwei): lapack need fortan compiler which many machines don't have, so use precompiled library.
...
...
@@ -57,7 +56,6 @@ ExternalProject_Add(
URL
${
LAPACK_URL
}
URL_MD5
${
LAPACK_URL_MD5
}
PREFIX
${
LAPACK_PREFIX_DIR
}
DOWNLOAD_DIR
${
LAPACK_SOURCE_DIR
}
DOWNLOAD_NO_PROGRESS 1
PATCH_COMMAND
""
UPDATE_COMMAND
""
...
...
cmake/external/leveldb.cmake
浏览文件 @
ba6f645e
...
...
@@ -14,7 +14,7 @@
INCLUDE
(
ExternalProject
)
SET
(
LEVELDB_
SOURCES
_DIR
${
THIRD_PARTY_PATH
}
/leveldb
)
SET
(
LEVELDB_
PREFIX
_DIR
${
THIRD_PARTY_PATH
}
/leveldb
)
SET
(
LEVELDB_INSTALL_DIR
${
THIRD_PARTY_PATH
}
/install/leveldb
)
SET
(
LEVELDB_INCLUDE_DIR
"
${
LEVELDB_INSTALL_DIR
}
/include"
CACHE PATH
"leveldb include directory."
FORCE
)
SET
(
LEVELDB_LIBRARIES
"
${
LEVELDB_INSTALL_DIR
}
/lib/libleveldb.a"
CACHE FILEPATH
"leveldb library."
FORCE
)
...
...
@@ -23,15 +23,15 @@ INCLUDE_DIRECTORIES(${LEVELDB_INCLUDE_DIR})
ExternalProject_Add
(
extern_leveldb
${
EXTERNAL_PROJECT_LOG_ARGS
}
PREFIX
${
LEVELDB_
SOURCES
_DIR
}
PREFIX
${
LEVELDB_
PREFIX
_DIR
}
GIT_REPOSITORY
"https://github.com/google/leveldb"
GIT_TAG v1.18
UPDATE_COMMAND
""
CONFIGURE_COMMAND
""
BUILD_COMMAND CXXFLAGS=-fPIC make -j
${
NUM_OF_PROCESSOR
}
libleveldb.a
INSTALL_COMMAND mkdir -p
${
LEVELDB_INSTALL_DIR
}
/lib/
&& cp
${
LEVELDB_
SOURCES
_DIR
}
/src/extern_leveldb/libleveldb.a
${
LEVELDB_LIBRARIES
}
&& cp -r
${
LEVELDB_
SOURCES
_DIR
}
/src/extern_leveldb/include
${
LEVELDB_INSTALL_DIR
}
/
&& cp
${
LEVELDB_
PREFIX
_DIR
}
/src/extern_leveldb/libleveldb.a
${
LEVELDB_LIBRARIES
}
&& cp -r
${
LEVELDB_
PREFIX
_DIR
}
/src/extern_leveldb/include
${
LEVELDB_INSTALL_DIR
}
/
BUILD_IN_SOURCE 1
BUILD_BYPRODUCTS
${
LEVELDB_LIBRARIES
}
)
...
...
cmake/external/libmct.cmake
浏览文件 @
ba6f645e
...
...
@@ -22,8 +22,8 @@ IF((NOT DEFINED LIBMCT_VER) OR (NOT DEFINED LIBMCT_URL))
SET
(
LIBMCT_URL
"https://pslib.bj.bcebos.com/libmct.tar.gz"
CACHE STRING
""
FORCE
)
ENDIF
()
MESSAGE
(
STATUS
"LIBMCT_NAME:
${
LIBMCT_NAME
}
, LIBMCT_URL:
${
LIBMCT_URL
}
"
)
SET
(
LIBMCT_
SOURCE
_DIR
"
${
THIRD_PARTY_PATH
}
/libmct"
)
SET
(
LIBMCT_DOWNLOAD_DIR
"
${
LIBMCT_
SOURCE
_DIR
}
/src/
${
LIBMCT_PROJECT
}
"
)
SET
(
LIBMCT_
PREFIX
_DIR
"
${
THIRD_PARTY_PATH
}
/libmct"
)
SET
(
LIBMCT_DOWNLOAD_DIR
"
${
LIBMCT_
PREFIX
_DIR
}
/src/
${
LIBMCT_PROJECT
}
"
)
SET
(
LIBMCT_DST_DIR
"libmct"
)
SET
(
LIBMCT_INSTALL_ROOT
"
${
THIRD_PARTY_PATH
}
/install"
)
SET
(
LIBMCT_INSTALL_DIR
${
LIBMCT_INSTALL_ROOT
}
/
${
LIBMCT_DST_DIR
}
)
...
...
@@ -42,7 +42,7 @@ FILE(WRITE ${LIBMCT_DOWNLOAD_DIR}/CMakeLists.txt
ExternalProject_Add
(
${
LIBMCT_PROJECT
}
${
EXTERNAL_PROJECT_LOG_ARGS
}
PREFIX
${
LIBMCT_
SOURCE
_DIR
}
PREFIX
${
LIBMCT_
PREFIX
_DIR
}
DOWNLOAD_DIR
${
LIBMCT_DOWNLOAD_DIR
}
DOWNLOAD_COMMAND wget --no-check-certificate
${
LIBMCT_URL
}
-c -q -O
${
LIBMCT_NAME
}
.tar.gz
&& tar zxvf
${
LIBMCT_NAME
}
.tar.gz
...
...
cmake/external/libxsmm.cmake
浏览文件 @
ba6f645e
...
...
@@ -14,7 +14,7 @@
INCLUDE
(
ExternalProject
)
SET
(
LIBXSMM_
SOURCES
_DIR
${
THIRD_PARTY_PATH
}
/libxsmm
)
SET
(
LIBXSMM_
PREFIX
_DIR
${
THIRD_PARTY_PATH
}
/libxsmm
)
SET
(
LIBXSMM_INSTALL_DIR
${
THIRD_PARTY_PATH
}
/install/libxsmm
)
SET
(
LIBXSMM_INCLUDE_DIR
"
${
LIBXSMM_INSTALL_DIR
}
/include"
CACHE PATH
"LIBXSMM include directory."
FORCE
)
SET
(
LIBXSMM_LIBRARY_DIR
"
${
LIBXSMM_INSTALL_DIR
}
/lib"
CACHE PATH
"LIBXSMM library directory."
FORCE
)
...
...
@@ -26,7 +26,7 @@ ExternalProject_Add(
${
SHALLOW_CLONE
}
GIT_REPOSITORY
"
${
GIT_URL
}
/hfp/libxsmm.git"
GIT_TAG
"7cc03b5b342fdbc6b6d990b190671c5dbb8489a2"
PREFIX
${
LIBXSMM_
SOURCES
_DIR
}
PREFIX
${
LIBXSMM_
PREFIX
_DIR
}
UPDATE_COMMAND
""
CONFIGURE_COMMAND
""
BUILD_IN_SOURCE 1
...
...
cmake/external/lite.cmake
浏览文件 @
ba6f645e
...
...
@@ -46,7 +46,7 @@ endif()
if
(
NOT LITE_SOURCE_DIR OR NOT LITE_BINARY_DIR
)
include
(
ExternalProject
)
set
(
LITE_PROJECT extern_lite
)
set
(
LITE_
SOURCES
_DIR
${
THIRD_PARTY_PATH
}
/lite
)
set
(
LITE_
PREFIX
_DIR
${
THIRD_PARTY_PATH
}
/lite
)
set
(
LITE_INSTALL_DIR
${
THIRD_PARTY_PATH
}
/install/lite
)
if
(
NOT LITE_GIT_TAG
)
...
...
@@ -85,8 +85,8 @@ if (NOT LITE_SOURCE_DIR OR NOT LITE_BINARY_DIR)
${
EXTERNAL_PROJECT_LOG_ARGS
}
GIT_REPOSITORY
"
${
GIT_URL
}
/PaddlePaddle/Paddle-Lite.git"
GIT_TAG
${
LITE_GIT_TAG
}
PREFIX
${
LITE_
SOURCES
_DIR
}
PATCH_COMMAND mkdir -p
${
LITE_
SOURCES_DIR
}
/src/extern_lite-build/lite/gen_code && touch
${
LITE_SOURCES_DIR
}
/src/extern_lite-build/lite/gen_code/__generated_code__.cc && sed -i
"/aarch64-linux-gnu-gcc/d"
${
LITE_SOURCES_DIR
}
/src/extern_lite/cmake/cross_compiling/armlinux.cmake && sed -i
"/aarch64-linux-gnu-g++/d"
${
LITE_SOURCES
_DIR
}
/src/extern_lite/cmake/cross_compiling/armlinux.cmake
PREFIX
${
LITE_
PREFIX
_DIR
}
PATCH_COMMAND mkdir -p
${
LITE_
PREFIX_DIR
}
/src/extern_lite-build/lite/gen_code && touch
${
LITE_PREFIX_DIR
}
/src/extern_lite-build/lite/gen_code/__generated_code__.cc && sed -i
"/aarch64-linux-gnu-gcc/d"
${
LITE_PREFIX_DIR
}
/src/extern_lite/cmake/cross_compiling/armlinux.cmake && sed -i
"/aarch64-linux-gnu-g++/d"
${
LITE_PREFIX
_DIR
}
/src/extern_lite/cmake/cross_compiling/armlinux.cmake
UPDATE_COMMAND
""
BUILD_COMMAND
${
LITE_BUILD_COMMAND
}
INSTALL_COMMAND
""
...
...
@@ -132,9 +132,9 @@ if (NOT LITE_SOURCE_DIR OR NOT LITE_BINARY_DIR)
${
EXTERNAL_PROJECT_LOG_ARGS
}
GIT_REPOSITORY
"
${
GIT_URL
}
/PaddlePaddle/Paddle-Lite.git"
GIT_TAG
${
LITE_GIT_TAG
}
PREFIX
${
LITE_
SOURCES
_DIR
}
PREFIX
${
LITE_
PREFIX
_DIR
}
UPDATE_COMMAND
""
PATCH_COMMAND sed -i
"s?NNadapter_bridges_path = os.path.abspath('..')+
\"
\/lite\/kernels\/nnadapter\/bridges\/paddle_use_bridges.h
\"
?NNadapter_bridges_path = os.path.abspath(\'..\')+
\"
\/extern_lite\/lite\/kernels\/nnadapter\/bridges\/paddle_use_bridges.h
\"
?"
${
LITE_
SOURCES
_DIR
}
/src/extern_lite//lite/tools/cmake_tools/record_supported_kernel_op.py
PATCH_COMMAND sed -i
"s?NNadapter_bridges_path = os.path.abspath('..')+
\"
\/lite\/kernels\/nnadapter\/bridges\/paddle_use_bridges.h
\"
?NNadapter_bridges_path = os.path.abspath(\'..\')+
\"
\/extern_lite\/lite\/kernels\/nnadapter\/bridges\/paddle_use_bridges.h
\"
?"
${
LITE_
PREFIX
_DIR
}
/src/extern_lite//lite/tools/cmake_tools/record_supported_kernel_op.py
BUILD_COMMAND
${
LITE_BUILD_COMMAND
}
INSTALL_COMMAND
""
CMAKE_ARGS -DCMAKE_CXX_COMPILER=
${
CMAKE_CXX_COMPILER
}
...
...
cmake/external/mklml.cmake
浏览文件 @
ba6f645e
...
...
@@ -16,7 +16,7 @@ INCLUDE(ExternalProject)
SET
(
MKLML_INSTALL_DIR
${
THIRD_PARTY_PATH
}
/install/mklml
)
SET
(
MKLML_INC_DIR
${
MKLML_INSTALL_DIR
}
/include
)
SET
(
MKLML_LIB_DIR
${
MKLML_INSTALL_DIR
}
/lib
)
SET
(
CMAKE_INSTALL_RPATH
"
${
CMAKE_INSTALL_RPATH
}
"
"
${
MKLML_
ROOT
}
/lib
"
)
SET
(
CMAKE_INSTALL_RPATH
"
${
CMAKE_INSTALL_RPATH
}
"
"
${
MKLML_
LIB_DIR
}
"
)
IF
(
WIN32
)
SET
(
MKLML_VER
"mklml_win_2019.0.5.20190502"
CACHE STRING
""
FORCE
)
...
...
cmake/external/pslib.cmake
浏览文件 @
ba6f645e
...
...
@@ -22,8 +22,8 @@ IF((NOT DEFINED PSLIB_VER) OR (NOT DEFINED PSLIB_URL))
SET
(
PSLIB_URL
"https://pslib.bj.bcebos.com/pslib.tar.gz"
CACHE STRING
""
FORCE
)
ENDIF
()
MESSAGE
(
STATUS
"PSLIB_NAME:
${
PSLIB_NAME
}
, PSLIB_URL:
${
PSLIB_URL
}
"
)
SET
(
PSLIB_
SOURCE
_DIR
"
${
THIRD_PARTY_PATH
}
/pslib"
)
SET
(
PSLIB_DOWNLOAD_DIR
"
${
PSLIB_
SOURCE
_DIR
}
/src/
${
PSLIB_PROJECT
}
"
)
SET
(
PSLIB_
PREFIX
_DIR
"
${
THIRD_PARTY_PATH
}
/pslib"
)
SET
(
PSLIB_DOWNLOAD_DIR
"
${
PSLIB_
PREFIX
_DIR
}
/src/
${
PSLIB_PROJECT
}
"
)
SET
(
PSLIB_DST_DIR
"pslib"
)
SET
(
PSLIB_INSTALL_ROOT
"
${
THIRD_PARTY_PATH
}
/install"
)
SET
(
PSLIB_INSTALL_DIR
${
PSLIB_INSTALL_ROOT
}
/
${
PSLIB_DST_DIR
}
)
...
...
@@ -46,7 +46,7 @@ FILE(WRITE ${PSLIB_DOWNLOAD_DIR}/CMakeLists.txt
ExternalProject_Add
(
${
PSLIB_PROJECT
}
${
EXTERNAL_PROJECT_LOG_ARGS
}
PREFIX
${
PSLIB_
SOURCE
_DIR
}
PREFIX
${
PSLIB_
PREFIX
_DIR
}
DOWNLOAD_DIR
${
PSLIB_DOWNLOAD_DIR
}
DOWNLOAD_COMMAND wget --no-check-certificate
${
PSLIB_URL
}
-c -q -O
${
PSLIB_NAME
}
.tar.gz
&& tar zxvf
${
PSLIB_NAME
}
.tar.gz
...
...
cmake/external/pslib_brpc.cmake
浏览文件 @
ba6f645e
...
...
@@ -22,8 +22,8 @@ IF((NOT DEFINED PSLIB_BRPC_NAME) OR (NOT DEFINED PSLIB_BRPC_URL))
SET
(
PSLIB_BRPC_URL
"https://pslib.bj.bcebos.com/pslib_brpc.tar.gz"
CACHE STRING
""
FORCE
)
ENDIF
()
MESSAGE
(
STATUS
"PSLIB_BRPC_NAME:
${
PSLIB_BRPC_NAME
}
, PSLIB_BRPC_URL:
${
PSLIB_BRPC_URL
}
"
)
SET
(
PSLIB_BRPC_
SOURCE
_DIR
"
${
THIRD_PARTY_PATH
}
/pslib_brpc"
)
SET
(
PSLIB_BRPC_DOWNLOAD_DIR
"
${
PSLIB_BRPC_
SOURCE
_DIR
}
/src/
${
PSLIB_BRPC_PROJECT
}
"
)
SET
(
PSLIB_BRPC_
PREFIX
_DIR
"
${
THIRD_PARTY_PATH
}
/pslib_brpc"
)
SET
(
PSLIB_BRPC_DOWNLOAD_DIR
"
${
PSLIB_BRPC_
PREFIX
_DIR
}
/src/
${
PSLIB_BRPC_PROJECT
}
"
)
SET
(
PSLIB_BRPC_DST_DIR
"pslib_brpc"
)
SET
(
PSLIB_BRPC_INSTALL_ROOT
"
${
THIRD_PARTY_PATH
}
/install"
)
SET
(
PSLIB_BRPC_INSTALL_DIR
${
PSLIB_BRPC_INSTALL_ROOT
}
/
${
PSLIB_BRPC_DST_DIR
}
)
...
...
@@ -45,7 +45,7 @@ FILE(WRITE ${PSLIB_BRPC_DOWNLOAD_DIR}/CMakeLists.txt
ExternalProject_Add
(
${
PSLIB_BRPC_PROJECT
}
${
EXTERNAL_PROJECT_LOG_ARGS
}
PREFIX
${
PSLIB_BRPC_
SOURCE
_DIR
}
PREFIX
${
PSLIB_BRPC_
PREFIX
_DIR
}
DOWNLOAD_DIR
${
PSLIB_BRPC_DOWNLOAD_DIR
}
DOWNLOAD_COMMAND wget --no-check-certificate
${
PSLIB_BRPC_URL
}
-c -q -O
${
PSLIB_BRPC_NAME
}
.tar.gz
&& tar zxvf
${
PSLIB_BRPC_NAME
}
.tar.gz
...
...
cmake/external/rocksdb.cmake
浏览文件 @
ba6f645e
...
...
@@ -14,7 +14,7 @@
INCLUDE
(
ExternalProject
)
SET
(
ROCKSDB_
SOURCES
_DIR
${
THIRD_PARTY_PATH
}
/rocksdb
)
SET
(
ROCKSDB_
PREFIX
_DIR
${
THIRD_PARTY_PATH
}
/rocksdb
)
SET
(
ROCKSDB_INSTALL_DIR
${
THIRD_PARTY_PATH
}
/install/rocksdb
)
SET
(
ROCKSDB_INCLUDE_DIR
"
${
ROCKSDB_INSTALL_DIR
}
/include"
CACHE PATH
"rocksdb include directory."
FORCE
)
SET
(
ROCKSDB_LIBRARIES
"
${
ROCKSDB_INSTALL_DIR
}
/lib/librocksdb.a"
CACHE FILEPATH
"rocksdb library."
FORCE
)
...
...
@@ -24,7 +24,7 @@ INCLUDE_DIRECTORIES(${ROCKSDB_INCLUDE_DIR})
ExternalProject_Add
(
extern_rocksdb
${
EXTERNAL_PROJECT_LOG_ARGS
}
PREFIX
${
ROCKSDB_
SOURCES
_DIR
}
PREFIX
${
ROCKSDB_
PREFIX
_DIR
}
GIT_REPOSITORY
"https://github.com/facebook/rocksdb"
GIT_TAG v6.10.1
UPDATE_COMMAND
""
...
...
@@ -34,10 +34,10 @@ ExternalProject_Add(
-DWITH_GFLAGS=OFF
-DCMAKE_CXX_FLAGS=
${
ROCKSDB_CMAKE_CXX_FLAGS
}
-DCMAKE_C_FLAGS=
${
CMAKE_C_FLAGS
}
# BUILD_BYPRODUCTS ${ROCKSDB_
SOURCES
_DIR}/src/extern_rocksdb/librocksdb.a
# BUILD_BYPRODUCTS ${ROCKSDB_
PREFIX
_DIR}/src/extern_rocksdb/librocksdb.a
INSTALL_COMMAND mkdir -p
${
ROCKSDB_INSTALL_DIR
}
/lib/
&& cp
${
ROCKSDB_
SOURCES
_DIR
}
/src/extern_rocksdb/librocksdb.a
${
ROCKSDB_LIBRARIES
}
&& cp -r
${
ROCKSDB_
SOURCES
_DIR
}
/src/extern_rocksdb/include
${
ROCKSDB_INSTALL_DIR
}
/
&& cp
${
ROCKSDB_
PREFIX
_DIR
}
/src/extern_rocksdb/librocksdb.a
${
ROCKSDB_LIBRARIES
}
&& cp -r
${
ROCKSDB_
PREFIX
_DIR
}
/src/extern_rocksdb/include
${
ROCKSDB_INSTALL_DIR
}
/
BUILD_IN_SOURCE 1
)
...
...
cmake/external/snappy.cmake
浏览文件 @
ba6f645e
...
...
@@ -16,7 +16,7 @@ include (ExternalProject)
# NOTE: snappy is needed when linking with recordio
set
(
SNAPPY_
SOURCES
_DIR
${
THIRD_PARTY_PATH
}
/snappy
)
set
(
SNAPPY_
PREFIX
_DIR
${
THIRD_PARTY_PATH
}
/snappy
)
set
(
SNAPPY_INSTALL_DIR
${
THIRD_PARTY_PATH
}
/install/snappy
)
set
(
SNAPPY_INCLUDE_DIR
"
${
SNAPPY_INSTALL_DIR
}
/include"
CACHE PATH
"snappy include directory."
FORCE
)
...
...
@@ -37,7 +37,7 @@ ExternalProject_Add(
extern_snappy
GIT_REPOSITORY
"https://github.com/google/snappy"
GIT_TAG
"1.1.7"
PREFIX
${
SNAPPY_
SOURCES
_DIR
}
PREFIX
${
SNAPPY_
PREFIX
_DIR
}
UPDATE_COMMAND
""
CMAKE_ARGS -DCMAKE_CXX_COMPILER=
${
CMAKE_CXX_COMPILER
}
-DCMAKE_C_COMPILER=
${
CMAKE_C_COMPILER
}
...
...
cmake/external/xpu.cmake
浏览文件 @
ba6f645e
...
...
@@ -41,8 +41,8 @@ SET(XPU_XDNN_URL "${XPU_BASE_URL}/${XPU_XDNN_DIR_NAME}.tar.gz" CACHE STRING "" F
SET
(
XPU_XCCL_URL
"
${
XPU_BASE_URL_WITHOUT_DATE
}
/20210623/
${
XPU_XCCL_DIR_NAME
}
.tar.gz"
CACHE STRING
""
FORCE
)
SET
(
XPU_PACK_DEPENCE_URL
"https://baidu-kunlun-public.su.bcebos.com/paddle_depence/pack_paddle_depence.sh"
CACHE STRING
""
FORCE
)
SET
(
XPU_SOURCE
_DIR
"
${
THIRD_PARTY_PATH
}
/xpu"
)
SET
(
XPU_DOWNLOAD_DIR
"
${
XPU_SOURCE
_DIR
}
/src/
${
XPU_PROJECT
}
"
)
SET
(
SNAPPY_PREFIX
_DIR
"
${
THIRD_PARTY_PATH
}
/xpu"
)
SET
(
XPU_DOWNLOAD_DIR
"
${
SNAPPY_PREFIX
_DIR
}
/src/
${
XPU_PROJECT
}
"
)
SET
(
XPU_INSTALL_DIR
"
${
THIRD_PARTY_PATH
}
/install/xpu"
)
SET
(
XPU_INC_DIR
"
${
THIRD_PARTY_PATH
}
/install/xpu/include"
)
SET
(
XPU_LIB_DIR
"
${
THIRD_PARTY_PATH
}
/install/xpu/lib"
)
...
...
@@ -61,7 +61,7 @@ FILE(WRITE ${XPU_DOWNLOAD_DIR}/CMakeLists.txt
ExternalProject_Add
(
${
XPU_PROJECT
}
${
EXTERNAL_PROJECT_LOG_ARGS
}
PREFIX
${
XPU_SOURCE
_DIR
}
PREFIX
${
SNAPPY_PREFIX
_DIR
}
DOWNLOAD_DIR
${
XPU_DOWNLOAD_DIR
}
DOWNLOAD_COMMAND wget
${
XPU_PACK_DEPENCE_URL
}
&& bash pack_paddle_depence.sh
${
XPU_XRE_URL
}
${
XPU_XRE_DIR_NAME
}
${
XPU_XDNN_URL
}
${
XPU_XDNN_DIR_NAME
}
${
XPU_XCCL_URL
}
${
XPU_XCCL_DIR_NAME
}
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录