• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1#!/bin/bash
2
3# install MindSpore-GPU using pip
4if [ "$(uname)" == Linux ]; then
5    if [ "$PY_VER" == "3.7" ]; then
6        echo "building conda package for python3.7"
7        pip install https://ms-release.obs.cn-north-4.myhuaweicloud.com/1.3.0/MindSpore/gpu/x86_64/cuda-11.1/mindspore_gpu-1.3.0-cp37-cp37m-linux_x86_64.whl --trusted-host ms-release.obs.cn-north-4.myhuaweicloud.com -i https://pypi.tuna.tsinghua.edu.cn/simple
8    elif [ "$PY_VER" == "3.9" ]; then
9        echo "building conda package for python3.9"
10    else
11        echo "ERROR: you are trying to build MindSpore conda package on a unsupported python environment, try python 3.7 or 3.9"
12        exit 1
13    fi
14fi