|
|
|
@ -340,23 +340,8 @@ checkopts()
|
|
|
|
|
esac
|
|
|
|
|
done
|
|
|
|
|
}
|
|
|
|
|
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" || "X$ENABLE_GPU" = "Xon" ]]; then
|
|
|
|
|
git submodule update --init --recursive akg
|
|
|
|
|
fi
|
|
|
|
|
|
|
|
|
|
build_exit()
|
|
|
|
|
{
|
|
|
|
|
echo "$@" >&2
|
|
|
|
|
stty echo
|
|
|
|
|
exit 1
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
# Create building path
|
|
|
|
|
build_mindspore()
|
|
|
|
|
parse_device()
|
|
|
|
|
{
|
|
|
|
|
# Process build option
|
|
|
|
|
if [[ "X$DEVICE" == "Xgpu" ]]; then
|
|
|
|
@ -403,7 +388,27 @@ build_mindspore()
|
|
|
|
|
usage
|
|
|
|
|
exit 1
|
|
|
|
|
fi
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
checkopts "$@"
|
|
|
|
|
parse_device
|
|
|
|
|
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" || "X$ENABLE_GPU" = "Xon" ]]; then
|
|
|
|
|
git submodule update --init --recursive akg
|
|
|
|
|
fi
|
|
|
|
|
|
|
|
|
|
build_exit()
|
|
|
|
|
{
|
|
|
|
|
echo "$@" >&2
|
|
|
|
|
stty echo
|
|
|
|
|
exit 1
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
# Create building path
|
|
|
|
|
build_mindspore()
|
|
|
|
|
{
|
|
|
|
|
echo "start build mindspore project."
|
|
|
|
|
mkdir -pv "${BUILD_PATH}/mindspore"
|
|
|
|
|
cd "${BUILD_PATH}/mindspore"
|
|
|
|
@ -692,9 +697,6 @@ build_lite()
|
|
|
|
|
{
|
|
|
|
|
get_version
|
|
|
|
|
echo "============ Start building MindSpore Lite ${VERSION_STR} ============"
|
|
|
|
|
if [[ "X$DEVICE" == "Xgpu" ]]; then
|
|
|
|
|
ENABLE_GPU="on"
|
|
|
|
|
fi
|
|
|
|
|
if [ "${ENABLE_GPU}" == "on" ] && [ "${LITE_PLATFORM}" == "arm64" ]; then
|
|
|
|
|
echo "start build opencl"
|
|
|
|
|
build_opencl
|
|
|
|
|