diff --git a/tutorials/source_en/orange_pi/environment_setup.md b/tutorials/source_en/orange_pi/environment_setup.md index 783134c02c8561e286d3bdc495511e9b2595b14b..0e0beea4c01a88809083872c88f4363e605d889f 100644 --- a/tutorials/source_en/orange_pi/environment_setup.md +++ b/tutorials/source_en/orange_pi/environment_setup.md @@ -142,19 +142,15 @@ Step 1 Use `CTRL+ALT+T` or click on the icon with `$_` at the bottom of the page ![environment-setup-1-14](../../source_zh_cn/orange_pi/images/environment_setup_1-14.png) -Step 2 Enter the software package installation information file directory. +Step 2 Execute the following command to obtain version information. ```bash -(base) HwHiAiUser@orangepiaipro:~$ cd /usr/local/Ascend/ascend-toolkit/latest/aarch64-linux +(base) HwHiAiUser@orangepiaipro:~$ cat /usr/local/Ascend/ascend-toolkit/latest/aarch64-linux/ascend_toolkit_install.info ``` -Step 3 Execute the following command to obtain version information. +![environment-setup-1-25](../../source_zh_cn/orange_pi/images/environment_setup_1-25.png) -```bash -(base) HwHiAiUser@orangepiaipro:~$ cat ascend_toolkit_install.info -``` - -### 3.2 CANN Upgrading +### 3.2 CANN Upgrading (taking 8.1.RC1 version as an example) If the current CANN version does not meet the development requirements, the CANN version can be upgraded according to the following steps. @@ -185,7 +181,7 @@ Step 2 Remove installed CANN packages to free up disk space and prevent installi ``` -Step 3 Open the official website of Ascend CANN to access the community version of the resource [download address](https://www.hiascend.com/developer/download/community/result?module=cann), download the required version of the toolkit package. Taking 8.0.0.beta1 version as an example, as shown below: +Step 3 Open the official website of Ascend CANN to access the community version of the resource [download address](https://www.hiascend.com/developer/download/community/result?module=cann), download the required version of the toolkit package. Taking 8.1.RC1 version as an example, as shown below: ![environment-setup-1-15](../../source_zh_cn/orange_pi/images/environment_setup_1-15.png) @@ -206,13 +202,13 @@ Step 4 Go to the Toolkit package download directory. Step 5 Add execution permissions to the CANN package. ```bash -(base) root@orangepiaipro: /home/HwHiAiUser/Downloads# chmod +x ./Ascend-cann-toolkit_8.0.0_linux-aarch64.run +(base) root@orangepiaipro: /home/HwHiAiUser/Downloads# chmod +x ./Ascend-cann-toolkit_8.1.RC1_linux-aarch64.run ``` Step 6 Execute the following command to upgrade the software. ```bash -(base) root@orangepiaipro: /home/HwHiAiUser/Downloads#./Ascend-cann-toolkit_8.0.0_linux-aarch64.run --install +(base) root@orangepiaipro: /home/HwHiAiUser/Downloads#./Ascend-cann-toolkit_8.1.RC1_linux-aarch64.run --install ``` Type Y when this prompt pops up during installation, then press Enter to continue the installation. This process takes about 10-15 minutes, please be patient. @@ -279,13 +275,13 @@ Step 4 Go to the Kernels package download directory. Step 5 Add execution permissions to the kernels package. ```bash -(base) root@orangepiaipro: /home/HwHiAiUser/Downloads# chmod +x ./Ascend-cann-kernels-310b_8.0.0_linux-aarch64.run +(base) root@orangepiaipro: /home/HwHiAiUser/Downloads# chmod +x ./Ascend-cann-kernels-310b_8.1.RC1_linux-aarch64.run ``` Step 6 Execute the following command to upgrade the software. ```bash -(base) root@orangepiaipro: /home/HwHiAiUser/Downloads#./Ascend-cann-kernels-310b_8.0.0_linux-aarch64.run --install +(base) root@orangepiaipro: /home/HwHiAiUser/Downloads#./Ascend-cann-kernels-310b_8.1.RC1_linux-aarch64.run --install ``` After the upgrade is completed, if the following message is displayed, the software upgrade is successful: @@ -314,9 +310,11 @@ Step 2 Execute the following command to obtain version information. (base) HwHiAiUser@orangepiaipro:~$ pip show mindspore ``` +![environment-setup-1-24](../../source_zh_cn/orange_pi/images/environment_setup_1-24.png) + If the current MindSpore version does not meet the development requirements, the MindSpore version can be upgraded according to the following methods. -### 4.2 Installing the Official Version of the Website (Taking MindSpore 2.5.0 as an example) +### 4.2 Installing the Official Version of the Website (Taking MindSpore 2.6.0 as an example) #### 4.2.1 MindSpore Upgrading @@ -325,13 +323,13 @@ Please note that both installation methods for MindSpore need to be performed un Method 1: Use the CTRL+ALT+T shortcut key or click on the icon with $_ at the bottom of the page to open the terminal, keep the HwHiAiUser user logged in, and run the pip install command directly on the terminal. ```bash -(base) HwHiAiUser@orangepiaipro:~$ pip install mindspore==2.5.0 +(base) HwHiAiUser@orangepiaipro:~$ pip install mindspore==2.6.0 ``` Method 2: Use the CTRL+ALT+T shortcut key or click on the icon with $_ at the bottom of the page to open the terminal, refer to [MindSpore official website installation tutorial](https://www.mindspore.cn/install/en) to install. ```bash -(base) HwHiAiUser@orangepiaipro:~$ pip install https://ms-release.obs.cn-north-4.myhuaweicloud.com/2.5.0/MindSpore/unified/aarch64/mindspore-2.5.0-cp39-cp39-linux_aarch64.whl --trusted-host ms-release.obs.cn-north-4.myhuaweicloud.com -i https://pypi.tuna.tsinghua.edu.cn/simple +(base) HwHiAiUser@orangepiaipro:~$ pip install https://ms-release.obs.cn-north-4.myhuaweicloud.com/2.6.0/MindSpore/unified/aarch64/mindspore-2.6.0-cp39-cp39-linux_aarch64.whl --trusted-host ms-release.obs.cn-north-4.myhuaweicloud.com -i https://pypi.tuna.tsinghua.edu.cn/simple # Confirm the operating system and programming language, and the default environment of the OrangePi AIpro development board is linux-aarch64 and python3.9 ``` @@ -345,7 +343,7 @@ Method 2: Use the CTRL+ALT+T shortcut key or click on the icon with $_ at the bo If the output is as follows, it indicates that MindSpore has been successfully installed. ```bash -MindSpore version: 2.5.0 +MindSpore version: 2.6.0 The result of multiplication calculation is correct, MindSpore has been installed on platform [Ascend] successfully! ``` diff --git a/tutorials/source_zh_cn/orange_pi/environment_setup.md b/tutorials/source_zh_cn/orange_pi/environment_setup.md index b0388c7fe1b56d5fa07112616c19d0d51ef13712..e0af7a237e6f52ba4bad40dff80a9191bbaf6e2c 100644 --- a/tutorials/source_zh_cn/orange_pi/environment_setup.md +++ b/tutorials/source_zh_cn/orange_pi/environment_setup.md @@ -142,19 +142,15 @@ ![environment-setup-1-14](./images/environment_setup_1-14.png) -步骤2 进入软件包安装信息文件目录。 +步骤2 执行以下命令获取版本信息。 ```bash -(base) HwHiAiUser@orangepiaipro:~$ cd /usr/local/Ascend/ascend-toolkit/latest/aarch64-linux +(base) HwHiAiUser@orangepiaipro:~$ cat /usr/local/Ascend/ascend-toolkit/latest/aarch64-linux/ascend_toolkit_install.info ``` -步骤3 执行以下命令获取版本信息。 +![environment-setup-1-25](./images/environment_setup_1-25.png) -```bash -(base) HwHiAiUser@orangepiaipro:~$ cat ascend_toolkit_install.info -``` - -### 3.2 CANN升级 +### 3.2 CANN升级(以CANN8.1.RC1为例) 若当前CANN版本不满足开发需求,可按照如下内容对CANN版本进行升级。 @@ -185,7 +181,7 @@ ``` -步骤3 打开昇腾CANN官网访问社区版资源[下载地址](https://www.hiascend.com/developer/download/community/result?module=cann),下载所需版本的toolkit包,该处以8.0.0.beta1版本为例,如下图: +步骤3 打开昇腾CANN官网访问社区版资源[下载地址](https://www.hiascend.com/developer/download/community/result?module=cann),下载所需版本的toolkit包,该处以8.1.RC1版本为例,如下图: ![environment-setup-1-15](./images/environment_setup_1-15.png) @@ -206,13 +202,13 @@ 步骤5 给CANN包添加执行权限。 ```bash -(base) root@orangepiaipro: /home/HwHiAiUser/Downloads# chmod +x ./Ascend-cann-toolkit_8.0.0_linux-aarch64.run +(base) root@orangepiaipro: /home/HwHiAiUser/Downloads# chmod +x ./Ascend-cann-toolkit_8.1.RC1_linux-aarch64.run ``` 步骤6 执行以下命令升级软件。 ```bash -(base) root@orangepiaipro: /home/HwHiAiUser/Downloads#./Ascend-cann-toolkit_8.0.0_linux-aarch64.run --install +(base) root@orangepiaipro: /home/HwHiAiUser/Downloads#./Ascend-cann-toolkit_8.1.RC1_linux-aarch64.run --install ``` 安装时弹出此提示后输入Y,然后按回车键继续安装,该过程约需要10-15分钟,请耐心等待。 @@ -279,13 +275,13 @@ npu-smi info 步骤5 给kernels包添加执行权限。 ```bash -(base) root@orangepiaipro: /home/HwHiAiUser/Downloads# chmod +x ./Ascend-cann-kernels-310b_8.0.0_linux-aarch64.run +(base) root@orangepiaipro: /home/HwHiAiUser/Downloads# chmod +x ./Ascend-cann-kernels-310b_8.1.RC1_linux-aarch64.run ``` 步骤6 执行以下命令升级软件。 ```bash -(base) root@orangepiaipro: /home/HwHiAiUser/Downloads#./Ascend-cann-kernels-310b_8.0.0_linux-aarch64.run --install +(base) root@orangepiaipro: /home/HwHiAiUser/Downloads#./Ascend-cann-kernels-310b_8.1.RC1_linux-aarch64.run --install ``` 升级完成后,若显示如下信息,则说明软件升级成功: @@ -314,9 +310,11 @@ xxx install success (base) HwHiAiUser@orangepiaipro:~$ pip show mindspore ``` +![environment-setup-1-24](./images/environment_setup_1-24.png) + 若当前MindSpore版本不满足开发需求,可按照如下内容对MindSpore版本进行升级。 -### 4.2 升级MindSpore(以MindSpore2.5.0为例) +### 4.2 升级MindSpore(以MindSpore2.6.0为例) #### 4.2.1 升级MindSpore @@ -325,13 +323,13 @@ xxx install success 方式一:使用CTRL+ALT+T快捷键或点击页面下方带有$_的图标打开终端,保持HwHiAiUser用户登录状态,在终端直接运行pip install命令。 ```bash -(base) HwHiAiUser@orangepiaipro:~$ pip install mindspore==2.5.0 +(base) HwHiAiUser@orangepiaipro:~$ pip install mindspore==2.6.0 ``` 方式二:使用CTRL+ALT+T快捷键或点击页面下方带有$_的图标打开终端,保持HwHiAiUser用户登录状态,参考[昇思MindSpore官网安装教程](https://www.mindspore.cn/install),在终端执行以下命令进行安装。 ```bash -(base) HwHiAiUser@orangepiaipro:~$ pip install https://ms-release.obs.cn-north-4.myhuaweicloud.com/2.5.0/MindSpore/unified/aarch64/mindspore-2.5.0-cp39-cp39-linux_aarch64.whl --trusted-host ms-release.obs.cn-north-4.myhuaweicloud.com -i https://pypi.tuna.tsinghua.edu.cn/simple +(base) HwHiAiUser@orangepiaipro:~$ pip install https://ms-release.obs.cn-north-4.myhuaweicloud.com/2.6.0/MindSpore/unified/aarch64/mindspore-2.6.0-cp39-cp39-linux_aarch64.whl --trusted-host ms-release.obs.cn-north-4.myhuaweicloud.com -i https://pypi.tuna.tsinghua.edu.cn/simple # 注意确认操作系统和编程语言,香橙派开发板默认环境下是linux-aarch64和python3.9 ``` @@ -347,7 +345,7 @@ xxx install success 如果输出如下,说明MindSpore安装成功了。 ```bash -MindSpore version: 2.5.0 +MindSpore version: 2.6.0 The result of multiplication calculation is correct, MindSpore has been installed on platform [Ascend] successfully! ``` diff --git a/tutorials/source_zh_cn/orange_pi/images/environment_setup_1-15.png b/tutorials/source_zh_cn/orange_pi/images/environment_setup_1-15.png index 78866fd792267238f84697adc13e66782bf40387..dd7d0614fb5f3f98660e6af8abcbe7720c88dc60 100644 Binary files a/tutorials/source_zh_cn/orange_pi/images/environment_setup_1-15.png and b/tutorials/source_zh_cn/orange_pi/images/environment_setup_1-15.png differ diff --git a/tutorials/source_zh_cn/orange_pi/images/environment_setup_1-18.png b/tutorials/source_zh_cn/orange_pi/images/environment_setup_1-18.png index 15b9ebfa767cf3f5fb85502dd1aff7d9a67d5fc3..20b73f76dc71abe0f8c696913f40bb61ab3cf545 100644 Binary files a/tutorials/source_zh_cn/orange_pi/images/environment_setup_1-18.png and b/tutorials/source_zh_cn/orange_pi/images/environment_setup_1-18.png differ diff --git a/tutorials/source_zh_cn/orange_pi/images/environment_setup_1-24.png b/tutorials/source_zh_cn/orange_pi/images/environment_setup_1-24.png new file mode 100644 index 0000000000000000000000000000000000000000..eff58787fe79efe41dbfd02858d1fd909b2290e9 Binary files /dev/null and b/tutorials/source_zh_cn/orange_pi/images/environment_setup_1-24.png differ diff --git a/tutorials/source_zh_cn/orange_pi/images/environment_setup_1-25.png b/tutorials/source_zh_cn/orange_pi/images/environment_setup_1-25.png new file mode 100644 index 0000000000000000000000000000000000000000..ad6fa56b02052574edb890d297a456f75b3b161c Binary files /dev/null and b/tutorials/source_zh_cn/orange_pi/images/environment_setup_1-25.png differ