2021-01-23 20:20:31 +08:00
|
|
|
if(ENABLE_GITEE)
|
2020-10-21 09:47:33 +08:00
|
|
|
set(REQ_URL "https://gitee.com/mirrors/incubator-tvm/repository/archive/v0.6.0.tar.gz")
|
|
|
|
set(MD5 "7b22965745cf1c6208a4e367fb86a585")
|
|
|
|
else()
|
2021-03-21 15:25:28 +08:00
|
|
|
set(REQ_URL
|
|
|
|
"https://github.com/apache/incubator-tvm/release/download/v0.6.0/apache-tvm-src-v0.6.0-incubating.tar.gz")
|
2020-10-21 09:47:33 +08:00
|
|
|
set(MD5 "2d77a005f0046d937b99c67de82f6438")
|
2021-01-23 20:20:31 +08:00
|
|
|
endif()
|
2020-03-27 14:49:12 +08:00
|
|
|
set(incubator_tvm_predict_CXXFLAGS "-D_FORTIFY_SOURCE=2 -O2")
|
|
|
|
set(incubator_tvm_predict_CFLAGS "-D_FORTIFY_SOURCE=2 -O2")
|
|
|
|
mindspore_add_pkg(incubator_tvm_predict
|
|
|
|
VER 0.6.0
|
|
|
|
HEAD_ONLY ./
|
2020-10-21 09:47:33 +08:00
|
|
|
URL ${REQ_URL}
|
|
|
|
MD5 ${MD5}
|
2020-03-27 14:49:12 +08:00
|
|
|
PATCHES ${CMAKE_SOURCE_DIR}/third_party/patch/predict/0001-RetBugFix-CustomRuntime_v06.patch)
|
|
|
|
include_directories(${incubator_tvm_predict_INC})
|
|
|
|
add_library(mindspore::incubator_tvm_predict ALIAS incubator_tvm_predict)
|