未验证 提交 a53ee944 编写于 作者: G gouzil 提交者: GitHub

[test]mv fluid op cinn to test/cpp/fluid/cinn (#53443)

上级 ef6e8d09
......@@ -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()
......@@ -6,3 +6,4 @@ add_subdirectory(imperative)
add_subdirectory(ir)
add_subdirectory(inference)
add_subdirectory(eager)
add_subdirectory(fluid)
if(WITH_CINN)
add_subdirectory(cinn)
endif()
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}")
......@@ -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);
......
......@@ -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);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册