Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
magicwindyyd
mindspore
提交
d5d9e923
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看板
提交
d5d9e923
编写于
7月 02, 2020
作者:
T
Tron Zhang
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
remove submodule akg
上级
9343746e
变更
5
隐藏空白更改
内联
并排
Showing
5 changed file
with
1 addition
and
29 deletion
+1
-29
CMakeLists.txt
CMakeLists.txt
+0
-4
akg
akg
+0
-1
build.sh
build.sh
+1
-13
cmake/options.cmake
cmake/options.cmake
+0
-1
cmake/package.cmake
cmake/package.cmake
+0
-10
未找到文件。
CMakeLists.txt
浏览文件 @
d5d9e923
...
...
@@ -83,10 +83,6 @@ if (ENABLE_GE OR ENABLE_D OR ENABLE_TESTCASES)
include_directories
(
${
CMAKE_CURRENT_SOURCE_DIR
}
/graphengine/third_party/fwkacllib/inc/toolchain
)
endif
()
if
(
ENABLE_AKG AND ENABLE_D
)
add_subdirectory
(
"
${
CMAKE_SOURCE_DIR
}
/akg"
)
endif
()
set
(
CMAKE_CXX_FLAGS
"
${
CMAKE_CXX_FLAGS
}
-fvisibility=hidden"
)
add_subdirectory
(
mindspore/ccsrc
)
if
(
ENABLE_TESTCASES
)
...
...
akg
@
f257d67b
Subproject commit f257d67b1e869b3a613cb9806b73ddc36cfe86c8
build.sh
浏览文件 @
d5d9e923
...
...
@@ -25,7 +25,7 @@ usage()
echo
"Usage:"
echo
"bash build.sh [-d] [-r] [-v] [-c on|off] [-t on|off] [-g on|off] [-h] [-b ge] [-m infer|train]
\\
"
echo
" [-a on|off] [-Q on|off] [-p on|off] [-i] [-L] [-R] [-D on|off] [-j[n]] [-e gpu|d|cpu]
\\
"
echo
" [-P on|off] [-z [on|off]] [-M on|off] [-V 9.2|10.1] [-I]
[-K]
"
echo
" [-P on|off] [-z [on|off]] [-M on|off] [-V 9.2|10.1] [-I]"
echo
""
echo
"Options:"
echo
" -d Debug mode"
...
...
@@ -52,7 +52,6 @@ usage()
echo
" -M Enable MPI and NCCL for GPU training, default on"
echo
" -V Specify the minimum required cuda version, default CUDA 9.2"
echo
" -I Compile predict, default off"
echo
" -K Compile with AKG, default off"
}
# check value of input is 'on' or 'off'
...
...
@@ -91,7 +90,6 @@ checkopts()
COMPILE_PREDICT
=
"off"
USE_GLOG
=
"on"
PREDICT_PLATFORM
=
""
ENABLE_AKG
=
"off"
# Process the options
while
getopts
'drvj:c:t:hsb:a:g:p:ie:m:I:LRP:Q:D:zM:V:K'
opt
...
...
@@ -230,10 +228,6 @@ checkopts()
exit
1
fi
;;
K
)
ENABLE_AKG
=
"on"
echo
"enable compile with akg"
;;
*
)
echo
"Unknown option
${
opt
}
!"
usage
...
...
@@ -245,9 +239,6 @@ checkopts "$@"
echo
"---------------- mindspore: build start ----------------"
mkdir
-pv
"
${
BUILD_PATH
}
/package/mindspore/lib"
git submodule update
--init
graphengine
if
[[
"X
$ENABLE_AKG
"
=
"Xon"
]]
&&
[[
"X
$ENABLE_D
"
=
"Xon"
]]
;
then
git submodule update
--init
--recursive
akg
fi
build_exit
()
{
...
...
@@ -310,9 +301,6 @@ build_mindspore()
if
[[
"X
$USE_GLOG
"
=
"Xon"
]]
;
then
CMAKE_ARGS
=
"
${
CMAKE_ARGS
}
-DUSE_GLOG=ON"
fi
if
[[
"X
$ENABLE_AKG
"
=
"Xon"
]]
&&
[[
"X
$ENABLE_D
"
=
"Xon"
]]
;
then
CMAKE_ARGS
=
"
${
CMAKE_ARGS
}
-DENABLE_AKG=ON"
fi
echo
"
${
CMAKE_ARGS
}
"
if
[[
"X
$INC_BUILD
"
=
"Xoff"
]]
;
then
cmake
${
CMAKE_ARGS
}
../..
...
...
cmake/options.cmake
浏览文件 @
d5d9e923
...
...
@@ -16,7 +16,6 @@ option(ENABLE_DUMP_PROTO "Enable dump anf graph to file in ProtoBuffer format, d
option
(
ENABLE_DUMP_E2E
"Enable dump e2e file, default on"
OFF
)
option
(
ENABLE_DUMP_IR
"Enable dump funciton graph ir, default on"
ON
)
option
(
ENABLE_MPI
"enable mpi"
OFF
)
option
(
ENABLE_AKG
"enable akg"
OFF
)
if
(
CMAKE_CXX_COMPILER_ID STREQUAL
"GNU"
)
if
(
WIN32
)
...
...
cmake/package.cmake
浏览文件 @
d5d9e923
...
...
@@ -222,16 +222,6 @@ if (ENABLE_GPU)
endif
()
endif
()
if
(
ENABLE_D AND ENABLE_AKG
)
set
(
AKG_PATH
${
CMAKE_SOURCE_DIR
}
/build/mindspore/akg
)
install
(
DIRECTORY
${
AKG_PATH
}
/akg
DESTINATION
${
INSTALL_PY_DIR
}
/..
COMPONENT mindspore
)
endif
()
if
(
EXISTS
${
CMAKE_SOURCE_DIR
}
/mindspore/dataset
)
install
(
DIRECTORY
${
CMAKE_SOURCE_DIR
}
/mindspore/dataset
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录