Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
PaddlePaddle
Paddle
提交
7341e6fc
P
Paddle
项目概览
PaddlePaddle
/
Paddle
大约 1 年 前同步成功
通知
2299
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看板
未验证
提交
7341e6fc
编写于
7月 20, 2023
作者:
W
Wang Xin
提交者:
GitHub
7月 20, 2023
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
[cmake] add third party jitify cache (#55501)
* [cmake] add third party jitify cache * fix bug * fixed * fix bug
上级
c63aba9e
变更
1
显示空白变更内容
内联
并排
Showing
1 changed file
with
24 addition
and
5 deletion
+24
-5
cmake/cinn/external/jitify.cmake
cmake/cinn/external/jitify.cmake
+24
-5
未找到文件。
cmake/cinn/external/jitify.cmake
浏览文件 @
7341e6fc
...
@@ -5,22 +5,41 @@ endif()
...
@@ -5,22 +5,41 @@ endif()
include
(
ExternalProject
)
include
(
ExternalProject
)
set
(
JITIFY_SOURCE_PATH
${
THIRD_PARTY_PATH
}
/install/jitify
)
# clone jitify to Paddle/third_party
set
(
JITIFY_SOURCE_DIR
${
PADDLE_SOURCE_DIR
}
/third_party/jitify
)
set
(
JITIFY_URL https://github.com/NVIDIA/jitify.git
)
set
(
JITIFY_TAG 57de649139c866eb83acacfe50c92ad7c6278776
)
if
(
NOT EXISTS
${
JITIFY_SOURCE_DIR
}
)
execute_process
(
COMMAND
${
GIT_EXECUTABLE
}
clone
${
JITIFY_URL
}
${
JITIFY_SOURCE_DIR
}
)
execute_process
(
COMMAND
${
GIT_EXECUTABLE
}
-C
${
JITIFY_SOURCE_DIR
}
checkout -q
${
JITIFY_TAG
}
)
else
()
# check git tag
execute_process
(
COMMAND
${
GIT_EXECUTABLE
}
-C
${
JITIFY_SOURCE_DIR
}
describe --tags
OUTPUT_VARIABLE CURRENT_TAG
OUTPUT_STRIP_TRAILING_WHITESPACE
)
if
(
NOT
${
CURRENT_TAG
}
STREQUAL
${
JITIFY_TAG
}
)
message
(
STATUS
"Checkout JITIFY to
${
JITIFY_TAG
}
"
)
execute_process
(
COMMAND
${
GIT_EXECUTABLE
}
-C
${
JITIFY_SOURCE_DIR
}
checkout
-q
${
JITIFY_TAG
}
)
endif
()
endif
()
ExternalProject_Add
(
ExternalProject_Add
(
external_jitify
external_jitify
${
EXTERNAL_PROJECT_LOG_ARGS
}
${
EXTERNAL_PROJECT_LOG_ARGS
}
GIT_REPOSITORY
"https://github.com/NVIDIA/jitify.git"
SOURCE_DIR
${
JITIFY_SOURCE_DIR
}
GIT_TAG 57de649139c866eb83acacfe50c92ad7c6278776
PREFIX
${
THIRD_PARTY_PATH
}
/jitify
PREFIX
${
THIRD_PARTY_PATH
}
/jitify
SOURCE_DIR
${
JITIFY_SOURCE_PATH
}
CONFIGURE_COMMAND
""
CONFIGURE_COMMAND
""
PATCH_COMMAND
""
PATCH_COMMAND
""
BUILD_COMMAND
""
BUILD_COMMAND
""
UPDATE_COMMAND
""
UPDATE_COMMAND
""
INSTALL_COMMAND
""
)
INSTALL_COMMAND
""
)
include_directories
(
${
JITIFY_SOURCE_
PATH
}
)
include_directories
(
${
JITIFY_SOURCE_
DIR
}
)
add_library
(
extern_jitify INTERFACE
)
add_library
(
extern_jitify INTERFACE
)
add_dependencies
(
extern_jitify external_jitify
)
add_dependencies
(
extern_jitify external_jitify
)
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录