Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
PaddlePaddle
Paddle
提交
a53ee944
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看板
未验证
提交
a53ee944
编写于
4月 28, 2023
作者:
G
gouzil
提交者:
GitHub
4月 28, 2023
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
[test]mv fluid op cinn to test/cpp/fluid/cinn (#53443)
上级
ef6e8d09
变更
8
显示空白变更内容
内联
并排
Showing
8 changed file
with
52 addition
and
52 deletion
+52
-52
paddle/fluid/operators/cinn/CMakeLists.txt
paddle/fluid/operators/cinn/CMakeLists.txt
+0
-50
test/cpp/CMakeLists.txt
test/cpp/CMakeLists.txt
+1
-0
test/cpp/fluid/CMakeLists.txt
test/cpp/fluid/CMakeLists.txt
+3
-0
test/cpp/fluid/cinn/CMakeLists.txt
test/cpp/fluid/cinn/CMakeLists.txt
+46
-0
test/cpp/fluid/cinn/cinn_instruction_run_op_test.cc
test/cpp/fluid/cinn/cinn_instruction_run_op_test.cc
+1
-1
test/cpp/fluid/cinn/cinn_launch_context_test.cc
test/cpp/fluid/cinn/cinn_launch_context_test.cc
+0
-0
test/cpp/fluid/cinn/cinn_launch_op_test.cc
test/cpp/fluid/cinn/cinn_launch_op_test.cc
+1
-1
test/cpp/fluid/cinn/test_helper.h
test/cpp/fluid/cinn/test_helper.h
+0
-0
未找到文件。
paddle/fluid/operators/cinn/CMakeLists.txt
浏览文件 @
a53ee944
...
...
@@ -29,53 +29,3 @@ set(CINN_OP_DEPS
cinn_launch_context
transform_type
)
register_operators
(
DEPS
${
CINN_OP_DEPS
}
)
if
(
WITH_TESTING
)
cc_test_old
(
cinn_launch_context_test
SRCS
cinn_launch_context_test.cc
DEPS
ddim
lod_tensor
scope
proto_desc
graph
cinn_launch_context
cinn_instruction_run_op
cinn
)
target_link_libraries
(
cinn_launch_context_test
${
PYTHON_LIBRARIES
}
)
set_tests_properties
(
cinn_launch_context_test PROPERTIES LABELS
"RUN_TYPE=CINN"
)
set
(
CINN_RUN_ENVIRONMENT
"OMP_NUM_THREADS=1;runtime_include_dir=
${
PADDLE_BINARY_DIR
}
/third_party/CINN/src/external_cinn/cinn/runtime/cuda"
)
# cc_test_old(
# cinn_launch_op_test
# SRCS
# cinn_launch_op_test.cc
# DEPS
# cinn_compiler
# cinn_launch_op
# cinn_instruction_run_op
# elementwise_add_op
# gflags)
# set_tests_properties(
# cinn_launch_op_test PROPERTIES LABELS "RUN_TYPE=CINN" ENVIRONMENT
# "${CINN_RUN_ENVIRONMENT}")
cc_test_old
(
cinn_instruction_run_op_test
SRCS
cinn_instruction_run_op_test.cc
DEPS
cinn_compiler
cinn_launch_op
cinn_instruction_run_op
elementwise_add_op
)
target_link_libraries
(
cinn_instruction_run_op_test
${
PYTHON_LIBRARIES
}
)
set_tests_properties
(
cinn_instruction_run_op_test PROPERTIES LABELS
"RUN_TYPE=CINN"
ENVIRONMENT
"
${
CINN_RUN_ENVIRONMENT
}
"
)
endif
()
test/cpp/CMakeLists.txt
浏览文件 @
a53ee944
...
...
@@ -6,3 +6,4 @@ add_subdirectory(imperative)
add_subdirectory
(
ir
)
add_subdirectory
(
inference
)
add_subdirectory
(
eager
)
add_subdirectory
(
fluid
)
test/cpp/fluid/CMakeLists.txt
0 → 100644
浏览文件 @
a53ee944
if
(
WITH_CINN
)
add_subdirectory
(
cinn
)
endif
()
test/cpp/fluid/cinn/CMakeLists.txt
0 → 100644
浏览文件 @
a53ee944
cc_test_old
(
cinn_launch_context_test
SRCS
cinn_launch_context_test.cc
DEPS
ddim
lod_tensor
scope
proto_desc
graph
cinn_launch_context
cinn_instruction_run_op
cinn
)
target_link_libraries
(
cinn_launch_context_test
${
PYTHON_LIBRARIES
}
)
set_tests_properties
(
cinn_launch_context_test PROPERTIES LABELS
"RUN_TYPE=CINN"
)
set
(
CINN_RUN_ENVIRONMENT
"OMP_NUM_THREADS=1;runtime_include_dir=
${
PADDLE_BINARY_DIR
}
/third_party/CINN/src/external_cinn/cinn/runtime/cuda"
)
# cc_test_old(
# cinn_launch_op_test
# SRCS
# cinn_launch_op_test.cc
# DEPS
# cinn_compiler
# cinn_launch_op
# cinn_instruction_run_op
# elementwise_add_op
# gflags)
# set_tests_properties(
# cinn_launch_op_test PROPERTIES LABELS "RUN_TYPE=CINN" ENVIRONMENT
# "${CINN_RUN_ENVIRONMENT}")
cc_test_old
(
cinn_instruction_run_op_test
SRCS
cinn_instruction_run_op_test.cc
DEPS
cinn_compiler
cinn_launch_op
cinn_instruction_run_op
elementwise_add_op
)
target_link_libraries
(
cinn_instruction_run_op_test
${
PYTHON_LIBRARIES
}
)
set_tests_properties
(
cinn_instruction_run_op_test PROPERTIES LABELS
"RUN_TYPE=CINN"
ENVIRONMENT
"
${
CINN_RUN_ENVIRONMENT
}
"
)
paddle/fluid/operators
/cinn/cinn_instruction_run_op_test.cc
→
test/cpp/fluid
/cinn/cinn_instruction_run_op_test.cc
浏览文件 @
a53ee944
...
...
@@ -20,11 +20,11 @@ limitations under the License. */
#include "paddle/fluid/framework/op_registry.h"
#include "paddle/fluid/framework/paddle2cinn/cinn_compiler.h"
#include "paddle/fluid/framework/scope.h"
#include "paddle/fluid/operators/cinn/test_helper.h"
#include "paddle/fluid/platform/cpu_helper.h"
#include "paddle/fluid/platform/enforce.h"
#include "paddle/fluid/platform/init.h"
#include "paddle/phi/core/kernel_registry.h"
#include "test/cpp/fluid/cinn/test_helper.h"
USE_OP_ITSELF
(
cinn_launch
);
USE_OP_ITSELF
(
cinn_instruction_run
);
...
...
paddle/fluid/operators
/cinn/cinn_launch_context_test.cc
→
test/cpp/fluid
/cinn/cinn_launch_context_test.cc
浏览文件 @
a53ee944
文件已移动
paddle/fluid/operators
/cinn/cinn_launch_op_test.cc
→
test/cpp/fluid
/cinn/cinn_launch_op_test.cc
浏览文件 @
a53ee944
...
...
@@ -24,12 +24,12 @@ limitations under the License. */
#include "paddle/fluid/framework/op_registry.h"
#include "paddle/fluid/framework/paddle2cinn/cinn_compiler.h"
#include "paddle/fluid/framework/scope.h"
#include "paddle/fluid/operators/cinn/test_helper.h"
#include "paddle/fluid/platform/cpu_helper.h"
#include "paddle/fluid/platform/init.h"
#include "paddle/phi/core/ddim.h"
#include "paddle/phi/core/flags.h"
#include "paddle/phi/core/kernel_registry.h"
#include "test/cpp/fluid/cinn/test_helper.h"
USE_OP_ITSELF
(
cinn_launch
);
USE_OP_ITSELF
(
cinn_instruction_run
);
...
...
paddle/fluid/operators
/cinn/test_helper.h
→
test/cpp/fluid
/cinn/test_helper.h
浏览文件 @
a53ee944
文件已移动
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录