未验证 提交 40f6a4d5 编写于 作者: J jackzhang235 提交者: GitHub

[MLU] add mlu's missing "APPEND ${fake_kernels_src_list}" in lite.cmake (#3379)

[MLU] add mlu's missing "APPEND ${fake_kernels_src_list}" in lite.cmake
上级 48f09caa
......@@ -381,6 +381,9 @@ function(add_kernel TARGET device level)
endif()
if ("${device}" STREQUAL "MLU")
if (NOT LITE_WITH_MLU)
foreach(src ${args_SRCS})
file(APPEND ${fake_kernels_src_list} "${CMAKE_CURRENT_SOURCE_DIR}/${src}\n")
endforeach()
return()
endif()
set(mlu_kernels "${mlu_kernels};${TARGET}" CACHE INTERNAL "")
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册