File tree Expand file tree Collapse file tree 1 file changed +18
-0
lines changed
csrc/deepep/ops/op_kernel Expand file tree Collapse file tree 1 file changed +18
-0
lines changed Original file line number Diff line number Diff line change @@ -3,6 +3,24 @@ if ("${CMAKE_BUILD_TYPE}x" STREQUAL "Debugx")
33 add_ops_compile_options(ALL OPTIONS -g -O0 )
44endif ()
55
6+ message (STATUS "ASCEND include path: ${ASCEND_CANN_PACKAGE_PATH} /opp/built-in/op_impl/ai_core/tbe/impl/ascendc/moe_distribute_dispatch" )
7+
8+ # copy moe_distribute_base head file
9+ execute_process (
10+ COMMAND ${CMAKE_COMMAND} -E copy
11+ "${ASCEND_CANN_PACKAGE_PATH} /opp/built-in/op_impl/ai_core/tbe/impl/ascendc/moe_distribute_dispatch/moe_distribute_base.h"
12+ "${CMAKE_CURRENT_BINARY_DIR} /../../op_kernel/moe_distribute_base.h"
13+ RESULT_VARIABLE copy_result
14+ )
15+
16+ # check moe_distribute_base head file
17+ if (copy_result EQUAL 0)
18+ message (STATUS "Successfully copied moe_distribute_base.h" )
19+ else ()
20+ message (WARNING "Failed to copy moe_distribute_base.h" )
21+ endif ()
22+
23+
624add_ops_compile_options(ALL OPTIONS -DASCENDC_DUMP=0 --cce-auto-sync=off )
725
826add_kernels_compile()
You can’t perform that action at this time.
0 commit comments