Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
magicwindyyd
mindspore
提交
109a21d5
M
mindspore
项目概览
magicwindyyd
/
mindspore
与 Fork 源项目一致
Fork自
MindSpore / mindspore
通知
1
Star
1
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
M
mindspore
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
提交
109a21d5
编写于
6月 21, 2020
作者:
T
tronzhang
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Adapt change of module akg
上级
e5193176
变更
4
隐藏空白更改
内联
并排
Showing
4 changed file
with
4 addition
and
32 deletion
+4
-32
CMakeLists.txt
CMakeLists.txt
+1
-14
akg
akg
+1
-1
build.sh
build.sh
+0
-7
cmake/package.cmake
cmake/package.cmake
+2
-10
未找到文件。
CMakeLists.txt
浏览文件 @
109a21d5
...
...
@@ -84,20 +84,7 @@ if (ENABLE_GE OR ENABLE_D OR ENABLE_TESTCASES)
endif
()
if
(
ENABLE_AKG AND ENABLE_D
)
set
(
AKG_PATH
"
${
CMAKE_SOURCE_DIR
}
/akg/mindspore/ccsrc/akg"
)
add_subdirectory
(
${
AKG_PATH
}
)
set
(
TVM_PATH
"
${
CMAKE_CURRENT_BINARY_DIR
}
/akg/mindspore/ccsrc/akg/incubator-tvm"
)
include_directories
(
"
${
TVM_PATH
}
/include"
)
include_directories
(
"
${
TVM_PATH
}
"
)
include_directories
(
"
${
TVM_PATH
}
/src"
)
include_directories
(
"
${
TVM_PATH
}
/src/schedule"
)
include_directories
(
"
${
TVM_PATH
}
/3rdparty/dmlc-core/include"
)
include_directories
(
"
${
TVM_PATH
}
/3rdparty/dlpack/include"
)
include_directories
(
"
${
TVM_PATH
}
/3rdparty/compiler-rt"
)
include_directories
(
"
${
TVM_PATH
}
/3rdparty/rang/include"
)
include_directories
(
"
${
TVM_PATH
}
/3rdparty/picojson"
)
include_directories
(
"
${
AKG_PATH
}
"
)
include_directories
(
"
${
AKG_PATH
}
/include"
)
add_subdirectory
(
"
${
CMAKE_SOURCE_DIR
}
/akg"
)
endif
()
set
(
CMAKE_CXX_FLAGS
"
${
CMAKE_CXX_FLAGS
}
-fvisibility=hidden"
)
...
...
akg
@
f257d67b
Subproject commit
02133cc76374b8c2d6c73f24a58d3c28e1e4d14e
Subproject commit
f257d67b1e869b3a613cb9806b73ddc36cfe86c8
build.sh
浏览文件 @
109a21d5
...
...
@@ -454,11 +454,4 @@ fi
cp
-rf
${
BUILD_PATH
}
/package/mindspore/lib
${
BUILD_PATH
}
/../mindspore
cp
-rf
${
BUILD_PATH
}
/package/mindspore/
*
.so
${
BUILD_PATH
}
/../mindspore
if
[[
"X
$ENABLE_AKG
"
=
"Xon"
]]
&&
[[
"X
$ENABLE_D
"
=
"Xon"
]]
;
then
so_lib_dir
=
${
BUILD_PATH
}
/package/mindspore/lib
akg_build_dir
=
${
BUILD_PATH
}
/mindspore/akg/mindspore/ccsrc/akg
mkdir
-p
${
so_lib_dir
}
cp
${
akg_build_dir
}
/
*
.so
${
so_lib_dir
}
fi
echo
"---------------- mindspore: build end ----------------"
cmake/package.cmake
浏览文件 @
109a21d5
...
...
@@ -223,21 +223,13 @@ if (ENABLE_GPU)
endif
()
if
(
ENABLE_D AND ENABLE_AKG
)
set
(
AKG_PATH
${
CMAKE_SOURCE_DIR
}
/akg
)
set
(
TVM_PATH
${
CMAKE_SOURCE_DIR
}
/build/mindspore/akg/mindspore/ccsrc/akg/incubator-tvm
)
set
(
AKG_PATH
${
CMAKE_SOURCE_DIR
}
/build/mindspore/akg
)
install
(
DIRECTORY
${
AKG_PATH
}
/
mindspore/
akg
${
AKG_PATH
}
/akg
DESTINATION
${
INSTALL_PY_DIR
}
/..
COMPONENT mindspore
)
install
(
DIRECTORY
${
TVM_PATH
}
/topi/python/topi
${
TVM_PATH
}
/python/tvm
DESTINATION
${
INSTALL_PY_DIR
}
/../akg
COMPONENT mindspore
)
endif
()
if
(
EXISTS
${
CMAKE_SOURCE_DIR
}
/mindspore/dataset
)
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录