From 6d306bea8deb66ee8cfcb07c1552b0d976cf6121 Mon Sep 17 00:00:00 2001 From: wukesong Date: Wed, 29 Apr 2020 15:30:09 +0800 Subject: [PATCH] modify install docs --- install/mindspore_d_install.md | 19 +++++++++---------- install/mindspore_d_install_en.md | 19 +++++++++---------- install/mindspore_gpu_install.md | 6 +++--- install/mindspore_gpu_install_en.md | 6 +++--- 4 files changed, 24 insertions(+), 26 deletions(-) diff --git a/install/mindspore_d_install.md b/install/mindspore_d_install.md index c52add9e..eaccf67a 100644 --- a/install/mindspore_d_install.md +++ b/install/mindspore_d_install.md @@ -72,7 +72,7 @@ - 从[MindSpore网站下载地址](https://www.mindspore.cn/versions)下载whl包,建议先进行SHA-256完整性校验,执行如下命令安装MindSpore。 ```bash - pip install mindspore-{version}-cp37-cp37m-linux_{arch}.whl + pip install mindspore_ascend-{version}-cp37-cp37m-linux_{arch}.whl ``` ### 从源码编译安装 @@ -97,8 +97,8 @@ 3. 执行如下命令安装MindSpore。 ```bash - chmod +x build/package/mindspore-{version}-cp37-cp37m-linux_{arch}.whl - pip install build/package/mindspore-{version}-cp37-cp37m-linux_{arch}.whl + chmod +x build/package/mindspore_ascend-{version}-cp37-cp37m-linux_{arch}.whl + pip install build/package/mindspore_ascend-{version}-cp37-cp37m-linux_{arch}.whl ``` ## 配置环境变量 @@ -108,15 +108,14 @@ ```bash # control log level. 0-DEBUG, 1-INFO, 2-WARNING, 3-ERROR, default level is WARNING. export GLOG_v=2 - # the root directory of run package - LOCAL_ASCEND=/usr/local/Ascend - # Python library that TBE implementation depends on - export TBE_IMPL_PATH=${LOCAL_ASCEND}/opp/op_impl/built-in/ai_core/tbe - export PYTHONPATH=${TBE_IMPL_PATH}:${PYTHONPATH} + # Conda environmental options + LOCAL_ASCEND=/usr/local/Ascend # the root directory of run package # lib libraries that the run package depends on export LD_LIBRARY_PATH=${LOCAL_ASCEND}/add-ons/:${LOCAL_ASCEND}/fwkacllib/lib64:${LD_LIBRARY_PATH} - # TBE operator compilation tool path - export PATH=${LOCAL_ASCEND}/fwkacllib/ccec_compiler/bin/:${PATH} + # Environment variables that must be configured + export TBE_IMPL_PATH=${LOCAL_ASCEND}/opp/op_impl/built-in/ai_core/tbe # TBE operator implementation tool path + export PATH=${LOCAL_ASCEND}/fwkacllib/ccec_compiler/bin/:${PATH} # TBE operator compilation tool path + export PYTHONPATH=${TBE_IMPL_PATH}:${PYTHONPATH} # Python library that TBE implementation depends on ``` ## 安装验证 diff --git a/install/mindspore_d_install_en.md b/install/mindspore_d_install_en.md index 634ab758..90bc7a9d 100644 --- a/install/mindspore_d_install_en.md +++ b/install/mindspore_d_install_en.md @@ -71,7 +71,7 @@ This document describes how to quickly install MindSpore on an Ascend AI process - Download the .whl package from the [MindSpore website](https://www.mindspore.cn/versions/en). It is recommended to perform SHA-256 integrity verification first and run the following command to install MindSpore: ```bash - pip install mindspore-{version}-cp37-cp37m-linux_{arch}.whl + pip install mindspore_ascend-{version}-cp37-cp37m-linux_{arch}.whl ``` ### Installing Using the Source Code @@ -96,8 +96,8 @@ The compilation and installation must be performed on the Ascend 910 AI processo 3. Run the following command to install MindSpore: ```bash - chmod +x build/package/mindspore-{version}-cp37-cp37m-linux_{arch}.whl - pip install build/package/mindspore-{version}-cp37-cp37m-linux_{arch}.whl + chmod +x build/package/mindspore_ascend-{version}-cp37-cp37m-linux_{arch}.whl + pip install build/package/mindspore_ascend-{version}-cp37-cp37m-linux_{arch}.whl ``` ## Configuring Environment Variables @@ -107,15 +107,14 @@ The compilation and installation must be performed on the Ascend 910 AI processo ```bash # control log level. 0-DEBUG, 1-INFO, 2-WARNING, 3-ERROR, default level is WARNING. export GLOG_v=2 - # the root directory of run package - LOCAL_ASCEND=/usr/local/Ascend - # Python library that TBE implementation depends on - export TBE_IMPL_PATH=${LOCAL_ASCEND}/opp/op_impl/built-in/ai_core/tbe - export PYTHONPATH=${TBE_IMPL_PATH}:${PYTHONPATH} + # Conda environmental options + LOCAL_ASCEND=/usr/local/Ascend # the root directory of run package # lib libraries that the run package depends on export LD_LIBRARY_PATH=${LOCAL_ASCEND}/add-ons/:${LOCAL_ASCEND}/fwkacllib/lib64:${LD_LIBRARY_PATH} - # TBE operator compilation tool path - export PATH=${LOCAL_ASCEND}/fwkacllib/ccec_compiler/bin/:${PATH} + # Environment variables that must be configured + export TBE_IMPL_PATH=${LOCAL_ASCEND}/opp/op_impl/built-in/ai_core/tbe # TBE operator implementation tool path + export PATH=${LOCAL_ASCEND}/fwkacllib/ccec_compiler/bin/:${PATH} # TBE operator compilation tool path + export PYTHONPATH=${TBE_IMPL_PATH}:${PYTHONPATH} # Python library that TBE implementation depends on ``` ## Installation Verification diff --git a/install/mindspore_gpu_install.md b/install/mindspore_gpu_install.md index e0645982..537b3293 100644 --- a/install/mindspore_gpu_install.md +++ b/install/mindspore_gpu_install.md @@ -56,7 +56,7 @@ - 从[MindSpore网站下载地址](https://www.mindspore.cn/versions)下载whl包,建议先进行SHA-256完整性校验,执行如下命令安装MindSpore。 ```bash - pip install mindspore-{version}-cp37-cp37m-linux_{arch}.whl + pip install mindspore_gpu-{version}-cp37-cp37m-linux_{arch}.whl ``` ### 从源码编译安装 @@ -78,8 +78,8 @@ 3. 执行如下命令安装MindSpore。 ```bash - chmod +x build/package/mindspore-{version}-cp37-cp37m-linux_{arch}.whl - pip install build/package/mindspore-{version}-cp37-cp37m-linux_{arch}.whl + chmod +x build/package/mindspore_gpu-{version}-cp37-cp37m-linux_{arch}.whl + pip install build/package/mindspore_gpu-{version}-cp37-cp37m-linux_{arch}.whl ``` ## 安装验证 diff --git a/install/mindspore_gpu_install_en.md b/install/mindspore_gpu_install_en.md index eb282811..4c41f09d 100644 --- a/install/mindspore_gpu_install_en.md +++ b/install/mindspore_gpu_install_en.md @@ -56,7 +56,7 @@ This document describes how to quickly install MindSpore on a NVIDIA GPU environ - Download the .whl package from the [MindSpore website](https://www.mindspore.cn/versions/en). It is recommended to perform SHA-256 integrity verification first and run the following command to install MindSpore: ```bash - pip install mindspore-{version}-cp37-cp37m-linux_{arch}.whl + pip install mindspore_gpu-{version}-cp37-cp37m-linux_{arch}.whl ``` ### Installing Using the Source Code @@ -78,8 +78,8 @@ This document describes how to quickly install MindSpore on a NVIDIA GPU environ 3. Run the following command to install MindSpore: ```bash - chmod +x build/package/mindspore-{version}-cp37-cp37m-linux_{arch}.whl - pip install build/package/mindspore-{version}-cp37-cp37m-linux_{arch}.whl + chmod +x build/package/mindspore_gpu-{version}-cp37-cp37m-linux_{arch}.whl + pip install build/package/mindspore_gpu-{version}-cp37-cp37m-linux_{arch}.whl ``` ## Installation Verification -- GitLab