Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
PaddlePaddle
Paddle
提交
988b252a
P
Paddle
项目概览
PaddlePaddle
/
Paddle
大约 1 年 前同步成功
通知
2298
Star
20931
Fork
5422
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
1423
列表
看板
标记
里程碑
合并请求
543
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
P
Paddle
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
1,423
Issue
1,423
列表
看板
标记
里程碑
合并请求
543
合并请求
543
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
未验证
提交
988b252a
编写于
8月 10, 2023
作者:
G
gouzil
提交者:
GitHub
8月 10, 2023
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
[cmake] add absl third_party cache (#55549)
* add absl to third_party * fix * ci test * ci test * ci test * rollback
上级
a9d3cef9
变更
2
隐藏空白更改
内联
并排
Showing
2 changed file
with
22 addition
and
9 deletion
+22
-9
cmake/cinn.cmake
cmake/cinn.cmake
+0
-4
cmake/cinn/external/absl.cmake
cmake/cinn/external/absl.cmake
+22
-5
未找到文件。
cmake/cinn.cmake
浏览文件 @
988b252a
...
@@ -326,10 +326,6 @@ set(CINN_LIB "${CINN_LIB_LOCATION}/${CINN_LIB_NAME}")
...
@@ -326,10 +326,6 @@ set(CINN_LIB "${CINN_LIB_LOCATION}/${CINN_LIB_NAME}")
# Add CINN's dependencies header files
# Add CINN's dependencies header files
######################################
######################################
# Add absl
set
(
ABSL_INCLUDE_DIR
"
${
CMAKE_BINARY_DIR
}
/dist/third_party/absl/include"
)
include_directories
(
${
ABSL_INCLUDE_DIR
}
)
# Add isl
# Add isl
set
(
ISL_INCLUDE_DIR
"
${
CMAKE_BINARY_DIR
}
/third_party/install/isl/include"
)
set
(
ISL_INCLUDE_DIR
"
${
CMAKE_BINARY_DIR
}
/third_party/install/isl/include"
)
include_directories
(
${
ISL_INCLUDE_DIR
}
)
include_directories
(
${
ISL_INCLUDE_DIR
}
)
...
...
cmake/cinn/external/absl.cmake
浏览文件 @
988b252a
include
(
ExternalProject
)
include
(
ExternalProject
)
set
(
ABSL_SOURCES_DIR
${
THIRD_PARTY_PATH
}
/absl
)
set
(
ABSL_SOURCES_DIR
${
PADDLE_SOURCE_DIR
}
/third_party
/absl
)
set
(
ABSL_INSTALL_DIR
${
THIRD_PARTY_PATH
}
/install/absl
)
set
(
ABSL_INSTALL_DIR
${
THIRD_PARTY_PATH
}
/install/absl
)
set
(
ABSL_PREFIX_DIR
${
THIRD_PARTY_PATH
}
/absl
)
set
(
ABSL_CMAKE_CXX_FLAGS
${
CMAKE_CXX_FLAGS
}
)
set
(
ABSL_CMAKE_CXX_FLAGS
${
CMAKE_CXX_FLAGS
}
)
set
(
ABSL_REPOSITORY
"https://github.com/abseil/abseil-cpp.git"
)
set
(
ABSL_REPOSITORY
"https://github.com/abseil/abseil-cpp.git"
)
set
(
ABSL_TAG
"20210324.2"
)
set
(
ABSL_TAG
"20210324.2"
)
if
(
NOT EXISTS
${
ABSL_SOURCES_DIR
}
)
message
(
STATUS
"Download absl source from
${
ABSL_REPOSITORY
}
to ABSL_SOURCES_DIR"
)
execute_process
(
COMMAND
${
GIT_EXECUTABLE
}
clone -b
${
ABSL_TAG
}
${
ABSL_REPOSITORY
}
${
ABSL_SOURCES_DIR
}
)
else
()
# check git tag
execute_process
(
COMMAND
${
GIT_EXECUTABLE
}
-C
${
ABSL_SOURCES_DIR
}
describe --tags
OUTPUT_VARIABLE CURRENT_TAG
OUTPUT_STRIP_TRAILING_WHITESPACE
)
if
(
NOT
${
CURRENT_TAG
}
STREQUAL
${
ABSL_TAG
}
)
message
(
STATUS
"Checkout absl to
${
ABSL_TAG
}
"
)
execute_process
(
COMMAND
${
GIT_EXECUTABLE
}
-C
${
ABSL_SOURCES_DIR
}
checkout
-q
${
ABSL_TAG
}
)
endif
()
endif
()
set
(
OPTIONAL_ARGS
set
(
OPTIONAL_ARGS
"-DCMAKE_CXX_COMPILER=
${
CMAKE_CXX_COMPILER
}
"
"-DCMAKE_CXX_COMPILER=
${
CMAKE_CXX_COMPILER
}
"
"-DCMAKE_C_COMPILER=
${
CMAKE_C_COMPILER
}
"
"-DCMAKE_C_COMPILER=
${
CMAKE_C_COMPILER
}
"
...
@@ -22,9 +40,8 @@ ExternalProject_Add(
...
@@ -22,9 +40,8 @@ ExternalProject_Add(
external_absl
external_absl
${
EXTERNAL_PROJECT_LOG_ARGS
}
${
EXTERNAL_PROJECT_LOG_ARGS
}
DEPENDS gflags
DEPENDS gflags
GIT_REPOSITORY
${
ABSL_REPOSITORY
}
PREFIX
${
ABSL_PREFIX_DIR
}
GIT_TAG
${
ABSL_TAG
}
SOURCE_DIR
${
ABSL_SOURCES_DIR
}
PREFIX
${
ABSL_SOURCES_DIR
}
UPDATE_COMMAND
""
UPDATE_COMMAND
""
CMAKE_ARGS
${
OPTIONAL_ARGS
}
CMAKE_ARGS
${
OPTIONAL_ARGS
}
-DCMAKE_INSTALL_PREFIX=
${
ABSL_INSTALL_DIR
}
-DCMAKE_INSTALL_PREFIX=
${
ABSL_INSTALL_DIR
}
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录