Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
PaddlePaddle
Paddle
提交
3e33ef5a
P
Paddle
项目概览
PaddlePaddle
/
Paddle
1 年多 前同步成功
通知
2305
Star
20932
Fork
5423
代码
文件
提交
分支
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看板
未验证
提交
3e33ef5a
编写于
12月 06, 2021
作者:
H
Huihuang Zheng
提交者:
GitHub
12月 06, 2021
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Update CINN tag (#37870)
1. Modify git tag for CINN 2. Support compile option "-DWITH_CINN=ON, -DWITH_TESTING=OFF"
上级
22401426
变更
3
隐藏空白更改
内联
并排
Showing
3 changed file
with
19 addition
and
16 deletion
+19
-16
cmake/external/cinn.cmake
cmake/external/cinn.cmake
+1
-2
paddle/fluid/framework/paddle2cinn/CMakeLists.txt
paddle/fluid/framework/paddle2cinn/CMakeLists.txt
+14
-12
paddle/fluid/operators/CMakeLists.txt
paddle/fluid/operators/CMakeLists.txt
+4
-2
未找到文件。
cmake/external/cinn.cmake
浏览文件 @
3e33ef5a
...
...
@@ -26,8 +26,7 @@ add_definitions(-w)
######################################
include
(
ExternalProject
)
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_GIT_TAG release/v0.1
)
set
(
CINN_OPTIONAL_ARGS -DPY_VERSION=
${
PY_VERSION
}
-DWITH_CUDA=
${
WITH_GPU
}
-DWITH_CUDNN=
${
WITH_GPU
}
...
...
paddle/fluid/framework/paddle2cinn/CMakeLists.txt
浏览文件 @
3e33ef5a
...
...
@@ -4,20 +4,22 @@ cc_library(transform_desc SRCS transform_desc.cc DEPS proto_desc cinn)
cc_library
(
cinn_graph_symbolization SRCS cinn_graph_symbolization.cc DEPS lod_tensor graph transform_desc cinn
)
cc_library
(
cinn_compiler SRCS cinn_compiler.cc DEPS framework_proto graph lod_tensor cinn_cache_key cinn_graph_symbolization cinn
)
cc_test
(
cinn_lib_test SRCS cinn_lib_test.cc DEPS cinn
)
set_tests_properties
(
cinn_lib_test PROPERTIES LABELS
"RUN_TYPE=CINN"
)
if
(
WITH_TESTING
)
cc_test
(
cinn_lib_test SRCS cinn_lib_test.cc DEPS cinn
)
set_tests_properties
(
cinn_lib_test PROPERTIES LABELS
"RUN_TYPE=CINN"
)
cc_test
(
cinn_cache_key_test SRCS cinn_cache_key_test.cc DEPS cinn_cache_key
)
set_tests_properties
(
cinn_cache_key_test PROPERTIES LABELS
"RUN_TYPE=CINN"
)
cc_test
(
cinn_cache_key_test SRCS cinn_cache_key_test.cc DEPS cinn_cache_key
)
set_tests_properties
(
cinn_cache_key_test PROPERTIES LABELS
"RUN_TYPE=CINN"
)
cc_test
(
build_cinn_pass_test SRCS build_cinn_pass_test.cc DEPS build_cinn_pass cinn_compiler
)
set_tests_properties
(
build_cinn_pass_test PROPERTIES LABELS
"RUN_TYPE=CINN"
)
cc_test
(
build_cinn_pass_test SRCS build_cinn_pass_test.cc DEPS build_cinn_pass cinn_compiler
)
set_tests_properties
(
build_cinn_pass_test PROPERTIES LABELS
"RUN_TYPE=CINN"
)
cc_test
(
transform_desc_test SRCS transform_desc_test.cc DEPS transform_desc
)
set_tests_properties
(
transform_desc_test PROPERTIES LABELS
"RUN_TYPE=CINN"
)
cc_test
(
transform_desc_test SRCS transform_desc_test.cc DEPS transform_desc
)
set_tests_properties
(
transform_desc_test PROPERTIES LABELS
"RUN_TYPE=CINN"
)
cc_test
(
cinn_graph_symbolization_test SRCS cinn_graph_symbolization_test.cc DEPS cinn_graph_symbolization
)
set_tests_properties
(
cinn_graph_symbolization_test PROPERTIES LABELS
"RUN_TYPE=CINN"
)
cc_test
(
cinn_graph_symbolization_test SRCS cinn_graph_symbolization_test.cc DEPS cinn_graph_symbolization
)
set_tests_properties
(
cinn_graph_symbolization_test PROPERTIES LABELS
"RUN_TYPE=CINN"
)
cc_test
(
cinn_compiler_test SRCS cinn_compiler_test.cc DEPS cinn_compiler place proto_desc graph_viz_pass build_cinn_pass cinn
)
set_tests_properties
(
cinn_compiler_test PROPERTIES LABELS
"RUN_TYPE=CINN"
)
cc_test
(
cinn_compiler_test SRCS cinn_compiler_test.cc DEPS cinn_compiler place proto_desc graph_viz_pass build_cinn_pass cinn
)
set_tests_properties
(
cinn_compiler_test PROPERTIES LABELS
"RUN_TYPE=CINN"
)
endif
()
paddle/fluid/operators/CMakeLists.txt
浏览文件 @
3e33ef5a
...
...
@@ -169,8 +169,10 @@ endif()
if
(
WITH_CINN
)
op_library
(
cinn_launch_op SRCS cinn_launch_op.cc cinn_launch_op.cu.cc DEPS transform_desc cinn_compiler cinn
${
OP_HEADER_DEPS
}
)
cc_test
(
cinn_launch_op_test SRCS cinn_launch_op_test.cc DEPS cinn_compiler cinn_launch_op elementwise_add_op
)
set_tests_properties
(
cinn_launch_op_test PROPERTIES ENVIRONMENT OMP_NUM_THREADS=1
)
if
(
WITH_TESTING
)
cc_test
(
cinn_launch_op_test SRCS cinn_launch_op_test.cc DEPS cinn_compiler cinn_launch_op elementwise_add_op
)
set_tests_properties
(
cinn_launch_op_test PROPERTIES ENVIRONMENT OMP_NUM_THREADS=1
)
endif
()
endif
()
# FIXME(typhoonzero): operator deps may not needed.
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录