提交 c4601765 编写于 作者: C chengbin 提交者: Gitee

!1 adapt building AKG in MindSpore

Merge pull request !1 from peiwenfang/0620_adapt_building_AKG_in_MindSpore
...@@ -25,18 +25,19 @@ project(akg C CXX) ...@@ -25,18 +25,19 @@ project(akg C CXX)
set(AKG_SOURCE_DIR "${CMAKE_CURRENT_SOURCE_DIR}") set(AKG_SOURCE_DIR "${CMAKE_CURRENT_SOURCE_DIR}")
include(cmake/utils.cmake)
include(cmake/external_libs/isl.cmake)
if(ENABLE_AKG) if(ENABLE_AKG)
message("-- Build akg in Mindspore") message("-- Build akg in Mindspore")
execute_process(COMMAND bash ${AKG_SOURCE_DIR}/third_party/apply_patches.sh ${CMAKE_CURRENT_BINARY_DIR} "1") execute_process(COMMAND bash ${AKG_SOURCE_DIR}/third_party/apply_patches.sh ${CMAKE_CURRENT_BINARY_DIR} "1")
set(TVM_DIR "${CMAKE_CURRENT_BINARY_DIR}/ktvm")
else() else()
message("-- Build akg alone") message("-- Build akg alone")
include(cmake/utils.cmake)
include(cmake/external_libs/isl.cmake)
execute_process(COMMAND bash ${AKG_SOURCE_DIR}/third_party/apply_patches.sh ${CMAKE_CURRENT_BINARY_DIR} "akg") execute_process(COMMAND bash ${AKG_SOURCE_DIR}/third_party/apply_patches.sh ${CMAKE_CURRENT_BINARY_DIR} "akg")
set(TVM_DIR "${CMAKE_BINARY_DIR}/ktvm")
endif() endif()
set(TVM_DIR "${CMAKE_CURRENT_BINARY_DIR}/ktvm") set(ISL_DIR "${CMAKE_BINARY_DIR}/_deps/isl-src")
set(ISL_DIR "${CMAKE_CURRENT_BINARY_DIR}/_deps/isl-src")
file(COPY ${AKG_SOURCE_DIR}/python/akg DESTINATION file(COPY ${AKG_SOURCE_DIR}/python/akg DESTINATION
${CMAKE_CURRENT_BINARY_DIR}) ${CMAKE_CURRENT_BINARY_DIR})
......
...@@ -4,4 +4,4 @@ mindspore_add_pkg(isl ...@@ -4,4 +4,4 @@ mindspore_add_pkg(isl
VER 0.22 VER 0.22
URL http://isl.gforge.inria.fr/isl-0.22.tar.gz URL http://isl.gforge.inria.fr/isl-0.22.tar.gz
MD5 671d0a5e10467a5c6db0893255278845 MD5 671d0a5e10467a5c6db0893255278845
PATCHES ${CMAKE_SOURCE_DIR}/third_party/patch/isl/isl.patch) PATCHES ${CMAKE_CURRENT_SOURCE_DIR}/third_party/patch/isl/isl.patch)
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册