Skip to content

Commit f4718ef

Browse files
authored
Update CMakeLists.txt (#152)
1 parent 97fb68c commit f4718ef

File tree

1 file changed

+18
-0
lines changed

1 file changed

+18
-0
lines changed

csrc/deepep/ops/op_kernel/CMakeLists.txt

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,24 @@ if ("${CMAKE_BUILD_TYPE}x" STREQUAL "Debugx")
33
add_ops_compile_options(ALL OPTIONS -g -O0 )
44
endif()
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+
624
add_ops_compile_options(ALL OPTIONS -DASCENDC_DUMP=0 --cce-auto-sync=off)
725

826
add_kernels_compile()

0 commit comments

Comments
 (0)