麒麟系统安装CANN开发环境

1. 更新麒麟系统

从麒麟公司获取,OS Patch包: V10SP1-aarch64-patch03-20201202.tar.gz, 解压缩到任意目录,如:/root/

[root@localhost ~]# ls -la
总用量 3181500
dr-xr-x---  16 root root       4096  5月 28 16:36 .
dr-xr-xr-x. 20 root root        282  5月 28 16:16 ..
-rw-------   1 root root       2963  5月 28 16:25 autosetup.sh
drwxr-xr-x   3 root root         21 12月 10 14:33 V10SP1-aarch64-patch03-20201202
-rw-------   1 root root 3257767788  5月 28 16:26 V10SP1-aarch64-patch03-20201202.tar.gz

安装patch

[root@localhost ~]# sh autosetup.sh

重启后确认版本

[root@localhost ~]# cat /etc/.kyinfo
[dist]
name=Kylin-Server
milestone=10-SP1-Release-Build04-20200711
arch=arm64
beta=False
time=2020-07-11 17:16:54
dist_id=Kylin-Server-10-SP1-Release-Build04-20200711-arm64-2020-07-11 17:16:54[servicekey]
key=0020036[os]
to=
term=2022-11-25

2. 准备安装及运行用户

创建用户:

root@UOS-PC:/home/adlink/Downloads/CANN# groupadd HwHiAiUser
root@UOS-PC:/home/adlink/Downloads/CANN# useradd -g HwHiAiUser -d /home/HwHiAiUser -m HwHiAiUser -s /bin/bash
root@UOS-PC:/home/adlink/Downloads/CANN# passwd HwHiAiUser
新的 密码:
重新输入新的 密码:
passwd:已成功更新密码
root@UOS-PC:/home/adlink/Downloads/CANN#

3. 驱动安装

用root用户安装驱动

[root@localhost CANN]# ./A300-3000-3010-npu-driver_21.0.1_centos7.6-aarch64.run --full
Verifying archive integrity...  100%   SHA256 checksums are OK. All good.
Uncompressing Atlas300_software_version_21.0.1  100%
[Driver] [2021-05-28 16:57:28] [INFO]Start time: 2021-05-28 16:57:28
[Driver] [2021-05-28 16:57:28] [INFO]LogFile: /var/log/ascend_seclog/ascend_install.log
[Driver] [2021-05-28 16:57:28] [INFO]OperationLogFile: /var/log/ascend_seclog/operation.log
[Driver] [2021-05-28 16:57:28] [INFO]set username and usergroup, HwHiAiUser:HwHiAiUser
[Driver] [2021-05-28 16:57:29] [INFO]Rebuilding by kernel path(/lib/modules/4.19.90-21.2.ky10.aarch64/build), detail in /var/log/ascend_seclog/ascend_rebuild.log
[Driver] [2021-05-28 16:58:35] [INFO]upgradePercentage:10%
[Driver] [2021-05-28 16:58:38] [INFO]upgradePercentage:30%
[Driver] [2021-05-28 16:58:38] [INFO]upgradePercentage:40%
[Driver] [2021-05-28 16:58:40] [INFO]upgradePercentage:90%
[Driver] [2021-05-28 16:58:40] [INFO]Waiting for device startup...
[Driver] [2021-05-28 16:58:42] [INFO]Device startup success
[Driver] [2021-05-28 16:58:50] [INFO]upgradePercentage:100%
[Driver] [2021-05-28 16:58:50] [INFO]Driver package install success! Reboot needed for installation/upgrade to take effect!
[Driver] [2021-05-28 16:58:50] [INFO]End time: 2021-05-28 16:58:50

重启后确认驱动安装正确

确认pci设备

[HwHiAiUser@localhost ~]$ lspci
00:00.0 PCI bridge: Cadence Design Systems, Inc. Device dc16
00:01.0 PCI bridge: Cadence Design Systems, Inc. Device dc01
00:02.0 PCI bridge: Cadence Design Systems, Inc. Device dc16
00:03.0 PCI bridge: Cadence Design Systems, Inc. Device dc08
00:04.0 PCI bridge: Cadence Design Systems, Inc. Device dc01
02:00.0 SATA controller: Marvell Technology Group Ltd. Device 9215 (rev 11)
03:00.0 VGA compatible controller: Advanced Micro Devices, Inc. [AMD/ATI] Lexa PRO [Radeon RX 550/550X] (rev c7)
03:00.1 Audio device: Advanced Micro Devices, Inc. [AMD/ATI] Baffin HDMI/DP Audio [Radeon RX 550 640SP / RX 560/560X]
04:00.0 PCI bridge: PMC-Sierra Inc. Device 8532
04:00.1 Memory controller: PMC-Sierra Inc. Device 8532
05:00.0 PCI bridge: PMC-Sierra Inc. Device 8532
05:01.0 PCI bridge: PMC-Sierra Inc. Device 8532
05:02.0 PCI bridge: PMC-Sierra Inc. Device 8532
05:03.0 PCI bridge: PMC-Sierra Inc. Device 8532
06:00.0 Processing accelerators: Huawei Technologies Co., Ltd. Device d100 (rev 20)
07:00.0 Processing accelerators: Huawei Technologies Co., Ltd. Device d100 (rev 20)
08:00.0 Processing accelerators: Huawei Technologies Co., Ltd. Device d100 (rev 20)
09:00.0 Processing accelerators: Huawei Technologies Co., Ltd. Device d100 (rev 20)
0a:00.0 USB controller: Renesas Technology Corp. uPD720201 USB 3.0 Host Controller (rev 03)

确认驱动模块加载成功

[HwHiAiUser@localhost ~]$ lsmod | grep drv
drv_devdrv_host       327680  0
drv_pcie_vnic_host    327680  0
drv_tsdrv_platform_host   262144  0
drv_pcie_hdc_host     327680  0
drv_devmng_host       393216  1 drv_devdrv_host
drv_devmm_host        393216  0
drv_pcie_host         393216  5 drv_pcie_vnic_host,drv_devdrv_host,drv_devmng_host,drv_devmm_host,drv_pcie_hdc_host
drv_seclib_host       262144  6 drv_pcie_host,drv_pcie_vnic_host,drv_devdrv_host,drv_devmng_host,drv_devmm_host,drv_pcie_hdc_host

确认Ascend310芯片状态正常

[HwHiAiUser@localhost ~]$ npu-smi info
+------------------------------------------------------------------------------+
| npu-smi 21.0.1                       Version: 21.0.1                         |
+-------------------+-----------------+----------------------------------------+
| NPU     Name      | Health          | Power(W)          Temp(C)              |
| Chip    Device    | Bus-Id          | AICore(%)         Memory-Usage(MB)     |
+===================+=================+========================================+
| 4       310       | OK              | 12.8              36                   |
| 0       0         | 0000:06:00.0    | 0                 2703 / 8192          |
+-------------------+-----------------+----------------------------------------+
| 4       310       | OK              | 12.8              40                   |
| 1       1         | 0000:07:00.0    | 0                 2703 / 8192          |
+-------------------+-----------------+----------------------------------------+
| 4       310       | OK              | 12.8              40                   |
| 2       2         | 0000:08:00.0    | 0                 2703 / 8192          |
+-------------------+-----------------+----------------------------------------+
| 4       310       | OK              | 12.8              41                   |
| 3       3         | 0000:09:00.0    | 0                 2703 / 8192          |
+===================+=================+========================================+
[HwHiAiUser@localhost ~]$

4. 升级firmware

用root用户升级firmware

[root@localhost CANN]# ./A300-3000-3010-npu-firmware_1.77.22.6.220.run --full
Verifying archive integrity...  100%   SHA256 checksums are OK. All good.
Uncompressing ASCEND310 FIRMWARE RUN PACKAGE  100%
[Firmware] [2021-05-28 17:05:16] [INFO]Start time: 2021-05-28 17:05:16
[Firmware] [2021-05-28 17:05:16] [INFO]LogFile: /var/log/ascend_seclog/ascend_install.log
[Firmware] [2021-05-28 17:05:16] [INFO]OperationLogFile: /var/log/ascend_seclog/operation.log
[Firmware] [2021-05-28 17:05:26] [INFO]upgradePercentage: 0%
[Firmware] [2021-05-28 17:05:32] [INFO]upgradePercentage: 0%
[Firmware] [2021-05-28 17:05:39] [INFO]upgradePercentage: 100%
[Firmware] [2021-05-28 17:05:39] [INFO]Firmware package install success! Reboot needed for installation/upgrad                                                          e to take effect!
[Firmware] [2021-05-28 17:05:39] [INFO]End time: 2021-05-28 17:05:39

重启后确认firmware版本正常

[root@localhost tools]# ./upgrade-tool --device_index -1 --component -1  --version
{
Get component version(1.77.22.6.220) succeed for deviceId(0), componentType(0).{"device_id":0, "component":nve, "version":1.77.22.6.220}
Get component version(1.77.22.6.220) succeed for deviceId(0), componentType(1).{"device_id":0, "component":xloader, "version":1.77.22.6.220}
Get component version(1.77.22.6.220) succeed for deviceId(0), componentType(2).{"device_id":0, "component":m3fw, "version":1.77.22.6.220}
Get component version(1.77.22.6.220) succeed for deviceId(0), componentType(3).{"device_id":0, "component":uefi, "version":1.77.22.6.220}
Get component version(1.77.22.6.220) succeed for deviceId(0), componentType(4).{"device_id":0, "component":tee, "version":1.77.22.6.220}
Get component version(1.77.22.6.220) succeed for deviceId(1), componentType(0).{"device_id":1, "component":nve, "version":1.77.22.6.220}
Get component version(1.77.22.6.220) succeed for deviceId(1), componentType(1).{"device_id":1, "component":xloader, "version":1.77.22.6.220}
Get component version(1.77.22.6.220) succeed for deviceId(1), componentType(2).{"device_id":1, "component":m3fw, "version":1.77.22.6.220}
Get component version(1.77.22.6.220) succeed for deviceId(1), componentType(3).{"device_id":1, "component":uefi, "version":1.77.22.6.220}
Get component version(1.77.22.6.220) succeed for deviceId(1), componentType(4).{"device_id":1, "component":tee, "version":1.77.22.6.220}
Get component version(1.77.22.6.220) succeed for deviceId(2), componentType(0).{"device_id":2, "component":nve, "version":1.77.22.6.220}
Get component version(1.77.22.6.220) succeed for deviceId(2), componentType(1).{"device_id":2, "component":xloader, "version":1.77.22.6.220}
Get component version(1.77.22.6.220) succeed for deviceId(2), componentType(2).{"device_id":2, "component":m3fw, "version":1.77.22.6.220}
Get component version(1.77.22.6.220) succeed for deviceId(2), componentType(3).{"device_id":2, "component":uefi, "version":1.77.22.6.220}
Get component version(1.77.22.6.220) succeed for deviceId(2), componentType(4).{"device_id":2, "component":tee, "version":1.77.22.6.220}
Get component version(1.77.22.6.220) succeed for deviceId(3), componentType(0).{"device_id":3, "component":nve, "version":1.77.22.6.220}
Get component version(1.77.22.6.220) succeed for deviceId(3), componentType(1).{"device_id":3, "component":xloader, "version":1.77.22.6.220}
Get component version(1.77.22.6.220) succeed for deviceId(3), componentType(2).{"device_id":3, "component":m3fw, "version":1.77.22.6.220}
Get component version(1.77.22.6.220) succeed for deviceId(3), componentType(3).{"device_id":3, "component":uefi, "version":1.77.22.6.220}
Get component version(1.77.22.6.220) succeed for deviceId(3), componentType(4).{"device_id":3, "component":tee, "version":1.77.22.6.220}
}

5. 安装OS依赖

[root@localhost ~]# yum makecache
Kylin Linux Advanced Server 10 - Os                                                                                                     520 kB/s |  10 MB     00:20
Last metadata expiration check: 0:00:15 ago on 2021年05月28日 星期五 17时11分13秒.
Metadata cache created.
[root@localhost ~]#[root@localhost ~]# yum install -y gcc gcc-c++ make cmake unzip zlib-devel libffi-devel openssl-devel pciutils net-tools sqlite-devel lapack-devel openblas-devel gcc-gfortran

检查版本
[test@localhost Python-3.7.5]$ gcc --version
gcc (GCC) 7.3.0
Copyright © 2017 Free Software Foundation, Inc.

[test@localhost Python-3.7.5]$ g++ --version
g++ (GCC) 7.3.0
Copyright © 2017 Free Software Foundation, Inc.

[test@localhost Python-3.7.5]$ cmake --version
cmake version 3.12.1
CMake suite maintained and supported by Kitware (kitware.com/cmake).

检查系统自带Python版本

[test@localhost CANN]$ python --version
Python 2.7.16
[test@localhost CANN]$ python3 --version
Python 3.7.4
[test@localhost CANN]$ pip --version
-bash: pip:未找到命令
[test@localhost CANN]$ pip3 --version
-bash: pip3:未找到命令

编译安装Python 3.7.5

[test@localhost CANN]$ wget https://www.python.org/ftp/python/3.7.5/Python-3.7.5.tgz
tar -zxvf Python-3.7.5.tgz
cd Python-3.7.5
./configure --prefix=/usr/local/python3.7.5 --enable-loadable-sqlite-extensions --enable-shared
make
sudo make install
sudo ln -s /usr/local/python3.7.5/bin/python3 /usr/local/python3.7.5/bin/python3.7.5
sudo ln -s /usr/local/python3.7.5/bin/pip3 /usr/local/python3.7.5/bin/pip3.7.5[root@localhost ~]# python3.7 --version
Python 3.7.5
[root@localhost ~]# pip3.7 --version
pip 19.2.3 from /usr/local/python3.7.5/lib/python3.7/site-packages/pip (python 3.7)[root@localhost ~]# pip3.7 list
Package    Version---------- -------pip        19.2.3
setuptools 41.2.0
WARNING: You are using pip version 19.2.3, however version 21.1.2 is available.
You should consider upgrading via the 'pip install --upgrade pip' command.

配置PIP源

[root@localhost ~]# cat .pip/pip.conf
[global]
#以华为源为例,请根据实际情况进行替换。
index-url = https://mirrors.huaweicloud.com/repository/pypi/simple
trusted-host = mirrors.huaweicloud.com
timeout = 120

安装python依赖包

pip3.7 install attrs
pip3.7 install numpy==1.17.2
pip3.7 install decorator
pip3.7 install sympy
pip3.7 install cffi
pip3.7 install pyyaml
pip3.7 install pathlib2
pip3.7 install psutil
pip3.7 install protobuf
pip3.7 install scipy
pip3.7 install requests

确认依赖包版本

[root@localhost ~]# pip3.7 list
Package    Version---------- ---------attrs      20.3.0
certifi    2020.12.5
cffi       1.14.5
chardet    4.0.0
decorator  5.0.7
idna       2.10
mpmath     1.2.1
numpy      1.17.2
pathlib2   2.3.5
pip        19.2.3
protobuf   3.15.8
psutil     5.8.0
pycparser  2.20
PyYAML     5.4.1
requests   2.25.1
scipy      1.6.3
setuptools 41.2.0
six        1.15.0
sympy      1.8
urllib3    1.26.4
WARNING: You are using pip version 19.2.3, however version 21.1.2 is available.
You should consider upgrading via the 'pip install --upgrade pip' command.
[HwHiAiUser@localhost bin]$ sudo cp /usr/local/python3.7.5/lib/libpython3.7m.so.1.0 /usr/lib64[HwHiAiUser@localhost bin]$ sudo ln -s /usr/local/python3.7.5/bin/python3 /usr/bin/python3.7
ln: 无法创建符号链接 '/usr/bin/python3.7': 文件已存在
[HwHiAiUser@localhost bin]$ sudo ln -s /usr/local/python3.7.5/bin/pip3 /usr/bin/pip3.7
[HwHiAiUser@localhost bin]$ sudo ln -s /usr/local/python3.7.5/bin/python3 /usr/bin/python3.7.5
[HwHiAiUser@localhost bin]$ sudo ln -s /usr/local/python3.7.5/bin/pip3 /usr/bin/pip3.7.5
[HwHiAiUser@localhost bin]$ sudo rm /usr/bin/python3.7
[HwHiAiUser@localhost bin]$ sudo ln -s /usr/local/python3.7.5/bin/python3 /usr/bin/python3.7
[HwHiAiUser@localhost bin]$ python3.7 --version
Python 3.7.5
[HwHiAiUser@localhost bin]$

6. 安装开发套件包

[root@localhost CANN]# ./Ascend-cann-toolkit_5.0.1_linux-aarch64.run --install
Verifying archive integrity...  100%   SHA256 checksums are OK. All good.
Uncompressing ASCEND_RUN_PACKAGE  100%
[Toolkit] [20210528-18:03:19] [INFO] change umask 0022
[Toolkit] [20210528-18:03:19] [INFO] mkdir /usr/local/Ascend/ascend-toolkit/5.0.1/arm64-linux
[Toolkit] [20210528-18:03:19] [INFO] touch /var/log/ascend_seclog/ascend_toolkit_install.log
[Toolkit] [20210528-18:03:19] [INFO] LogFile:/var/log/ascend_seclog/ascend_toolkit_install.log
[Toolkit] [20210528-18:03:19] [INFO] install start
[Toolkit] [20210528-18:03:19] [INFO] The install path is /usr/local/Ascend !
[Toolkit] [20210528-18:03:19] [INFO] install package Ascend-acllib-1.77.22.6.220-linux.aarch64.run start
[Toolkit] [20210528-18:03:20] [INFO] Ascend-acllib-1.77.22.6.220-linux.aarch64.run --full --quiet --nox11  --install-username=HwHiAiUser --install-usergroup=HwHiAiUser install success
[Toolkit] [20210528-18:03:20] [INFO] install package Ascend-pyACL-5.0.1-linux.aarch64.run start
[Toolkit] [20210528-18:03:20] [INFO] Ascend-pyACL-5.0.1-linux.aarch64.run --full --quiet --nox11  --install-username=HwHiAiUser --install-usergroup=HwHiAiUser install success
[Toolkit] [20210528-18:03:21] [INFO] install package Ascend-atc-1.77.22.6.220-linux.aarch64.run start
[Toolkit] [20210528-18:03:51] [INFO] Ascend-atc-1.77.22.6.220-linux.aarch64.run --full --pylocal --quiet --nox11  --install-username=HwHiAiUser --install-usergroup=HwHiAiUser install success
[Toolkit] [20210528-18:03:51] [INFO] install package Ascend-opp-1.77.22.6.220-linux.aarch64.run start
[Toolkit] [20210528-18:04:02] [INFO] Ascend-opp-1.77.22.6.220-linux.aarch64.run --full --quiet --nox11  --install-username=HwHiAiUser --install-usergroup=HwHiAiUser install success
[Toolkit] [20210528-18:04:02] [INFO] install package Ascend-toolkit-1.77.22.6.220-linux.aarch64.run start
[Toolkit] [20210528-18:04:33] [INFO] Ascend-toolkit-1.77.22.6.220-linux.aarch64.run --full --pylocal --quiet --nox11  --install-username=HwHiAiUser --install-usergroup=HwHiAiUser install success
[Toolkit] [20210528-18:04:33] [INFO] install package Ascend-fwkacllib-1.77.22.6.220-linux.aarch64.run start
[Toolkit] [20210528-18:05:06] [INFO] Ascend-fwkacllib-1.77.22.6.220-linux.aarch64.run --full --pylocal --quiet --nox11  --install-username=HwHiAiUser --install-usergroup=HwHiAiUser install success
[Toolkit] [20210528-18:05:06] [INFO] install package Ascend-test-ops-5.0.1.run start
[Toolkit] [20210528-18:05:06] [INFO] Ascend-test-ops-5.0.1.run --full --quiet --nox11  --install-username=HwHiAiUser --install-usergroup=HwHiAiUser install success
[Toolkit] [20210528-18:05:06] [INFO] install package Ascend310-aicpu_kernels-1.77.22.6.220.run start
[Toolkit] [20210528-18:05:07] [INFO] Ascend310-aicpu_kernels-1.77.22.6.220.run --full --quiet --nox11  --install-username=HwHiAiUser --install-usergroup=HwHiAiUser install success
[Toolkit] [20210528-18:05:07] [INFO] install package Ascend910-aicpu_kernels-1.77.22.6.220.run start
[Toolkit] [20210528-18:05:08] [INFO] Ascend910-aicpu_kernels-1.77.22.6.220.run --full --quiet --nox11  --install-username=HwHiAiUser --install-usergroup=HwHiAiUser install success
[Toolkit] [20210528-18:05:08] [INFO] install package Ascend310-aicpu_kernels_minirc-1.77.22.6.220.run start
[Toolkit] [20210528-18:05:09] [INFO] Ascend310-aicpu_kernels_minirc-1.77.22.6.220.run --full --quiet --nox11  --install-username=HwHiAiUser --install-usergroup=HwHiAiUser install success
[Toolkit] [20210528-18:05:09] [INFO] /etc/Ascend/ascend_cann_install.info generate success
[Toolkit] [20210528-18:05:09] [INFO] Please make sure that:
Offline infer develop (cannot coexist with other scenes):LD_LIBRARY_PATH includes :/usr/local/Ascend/ascend-toolkit/latest/acllib/lib64:PYTHONPATH includes :/usr/local/Ascend/ascend-toolkit/latest/pyACL/python/site-packages/acl:/usr/local/Ascend/ascend-toolkit/latest/toolkit/python/site-packages:ASCEND_AICPU_PATH includes :/usr/local/Ascend/ascend-toolkit/latest:ASCEND_OPP_PATH includes :/usr/local/Ascend/ascend-toolkit/latest/opp:TOOLCHAIN_HOME includes :/usr/local/Ascend/ascend-toolkit/latest/toolkit:
Third party AI framework develop (cannot coexist with other scenes):PATH includes :/usr/local/Ascend/ascend-toolkit/latest/fwkacllib/ccec_compiler/bin:/usr/local/Ascend/ascend-toolkit/latest/fwkacllib/bin:LD_LIBRARY_PATH includes :/usr/local/Ascend/ascend-toolkit/latest/fwkacllib/lib64:PYTHONPATH includes :/usr/local/Ascend/ascend-toolkit/latest/fwkacllib/python/site-packages:/usr/local/Ascend/ascend-toolkit/latest/toolkit/python/site-packages:ASCEND_OPP_PATH includes :/usr/local/Ascend/ascend-toolkit/latest/opp:ASCEND_AICPU_PATH includes :/usr/local/Ascend/ascend-toolkit/latest:TOOLCHAIN_HOME includes :/usr/local/Ascend/ascend-toolkit/latest/toolkit:
Model transformation and operator develop (cannot coexist with other scenes):PATH includes :/usr/local/Ascend/ascend-toolkit/latest/atc/ccec_compiler/bin:/usr/local/Ascend/ascend-toolkit/latest/atc/bin:LD_LIBRARY_PATH includes :/usr/local/Ascend/ascend-toolkit/latest/atc/lib64:PYTHONPATH includes :/usr/local/Ascend/ascend-toolkit/latest/atc/python/site-packages:/usr/local/Ascend/ascend-toolkit/latest/toolkit/python/site-packages:ASCEND_OPP_PATH includes :/usr/local/Ascend/ascend-toolkit/latest/opp:TOOLCHAIN_HOME includes :/usr/local/Ascend/ascend-toolkit/latest/toolkit:
[Toolkit] [20210528-18:05:09] [INFO] If your service is started using the shell script, you can call the /usr/local/Ascend/ascend-toolkit/set_env.sh script to configure environment variables. Note that this script can not be executed mannually.
[Toolkit] [20210528-18:05:09] [INFO] Ascend-cann-toolkit_5.0.1_linux-aarch64.run install success,The install path is /usr/local/Ascend !

7. 验证开发环境

下载并编译推理工具

HwHiAiUser@UOS-PC:~/Downloads$ git clone https://gitee.com/ascend/tools.git
HwHiAiUser@UOS-PC:~/Downloads$ cd tools/msame
HwHiAiUser@UOS-PC:~/Downloads/tools/msame$ source /usr/local/Ascend/ascend-toolkit/set_env.sh
HwHiAiUser@UOS-PC:~/Downloads/tools/msame$ export DDK_PATH=/usr/local/Ascend/ascend-toolkit/latest
HwHiAiUser@UOS-PC:~/Downloads/tools/msame$ export NPU_HOST_LIB=/usr/local/Ascend/ascend-toolkit/latest/acllib/lib64/stub
HwHiAiUser@UOS-PC:~/Downloads/tools/msame$ ./build.sh g++

下载任意om模型,进行空数据推理

下载googlenet模型

HwHiAiUser@UOS-PC:~/Downloads/tools/msame$ mkdir googlenet
HwHiAiUser@UOS-PC:~/Downloads/tools/msame/googlenet$ wget https://modelzoo-train-atc.obs.cn-north-4.myhuaweicloud.com/003_Atc_Models/AE/ATC%20Model/classification/googlenet.om

运行推理

HwHiAiUser@UOS-PC:~/Downloads/tools/msame/googlenet$ cat run.sh
../out/msame \--model ./googlenet.om \--output ./output \--outfmt BIN \--loop 1
HwHiAiUser@UOS-PC:~/Downloads/tools/msame/googlenet$ ./run.sh
[INFO] acl init success
[INFO] open device 0 success
[INFO] create context success
[INFO] create stream success
[INFO] get run mode success
[INFO] load model ./googlenet.om success
[INFO] create model description success
[INFO] get input dynamic gear count success
[INFO] create model output success
./output/20210827_072443
[INFO] model execute success
Inference time: 2.194ms
[INFO] output data success
Inference average time: 2.194000 ms
[INFO] unload model success, model Id is 1
[INFO] Execute sample success.
[INFO] end to destroy stream
[INFO] end to destroy context
[INFO] end to reset device is 0
[INFO] end to finalize acl
HwHiAiUser@UOS-PC:~/Downloads/tools/msame/googlenet$

麒麟系统安装CANN开发环境相关推荐

  1. 银河麒麟操作系统安装Mono开发环境操作步骤

    银河麒麟操作系统安装Mono开发环境操作步骤 需求:现有一C/S结构的Winform客户端程序需要运行到国产操作麒麟操作系统V10上,经查询资料,普遍采取mono开发工具来实现此转换. 目标:转换现有 ...

  2. 苹果系统安装Java开发环境JDK

    http://androidren.com/index.php?qa=409&qa_1=苹果系统安装java开发环境jdk 先安装brew,具体可以参考: http://blog.csdn.n ...

  3. win10系统安装php开发环境(PHP+Apache+MySQL)--PHP

    PHP下载 1.网址:https://windows.php.net/downloads/releases/ 我下载的是php-7.1.32-Win32-VC14-x64.zip 2.解压 我的位置: ...

  4. 麒麟系统开发笔记(一):国产麒麟系统搭建开发环境之虚拟机安装

    若该文为原创文章,转载请注明原文出处 本文章博客地址:https://hpzwl.blog.csdn.net/article/details/123045165 红胖子(红模仿)的博文大全:开发技术集 ...

  5. Android开发 装ubuntu,Ubuntu系统安装Android开发环境

    从昨天开始,在自己的电脑上安装ubuntu 8.04 + eclipse + ADT 开发环境. 有一个官方的中文安装指南,虽然有逐步的安装指南,但是安装时还总是遇到一些小问题,最终还是安装成功了. ...

  6. 麒麟系统开发笔记(二):国产麒麟系统搭建Qt开发环境安装Qt5.12

    若该文为原创文章,转载请注明原文出处 本文章博客地址:https://hpzwl.blog.csdn.net/article/details/123840699 红胖子(红模仿)的博文大全:开发技术集 ...

  7. Deepin系统初体验指南:从安装到开发环境配置

    深度操作系统(Deepin)是目前国内最流行和活跃的 Linux 发行版,一直以"免除新手痛苦.节约老手时间"为口号. 这篇文章落笔于 2020 年 10 月,此年,深之度正式发布 ...

  8. Rust交叉编译开发环境的搭建

    为嵌入式开发引入新的编程语言 对于嵌入式系统软件和应用软件的开发而言,编程语言的重要性次于整体的软件架构设计的重要性.不过仍有必要谨慎地选择编程语言,因为这涉及开发效率.软件性能,以及团队成员的技术能 ...

  9. 【Android 应用开发】Android 开发环境下载地址 -- 百度网盘 adt-bundle android-studio sdk adt 下载

    . 最新下载 : 2017年 8 月 28 日 : 平台 Android Studio 软件包 大小 SHA-1 校验和 Windows (64 位) android-studio-bundle-16 ...

最新文章

  1. 辉光数码管中挥之不去的记忆
  2. Git忽略文件方法【转】
  3. BOOST_VMD_ASSERT_IS_TYPE宏相关的测试程序
  4. cenos下安装MySQL最新版(5.7.18)记录。附卸载老版本过程
  5. 常见工具:dp与px互转,屏幕宽度与高度获取
  6. JQuery DataTables Editor---只修改页面内容
  7. 一起学JUCE之HashMap
  8. 浅谈在基本数据包装类中使用'=='与equals的区别
  9. mysql 中IF()、IFNULL()、NULLIF()、ISNULL()函数的使用
  10. 增长量计算n+1原则_事业单位行测:巧解增长量计算公式
  11. msm8953 单独编译bootloader、kernel和system,以及采用adb fastboot下载镜像的方法
  12. 初识Java 之软件下载与安装配置
  13. 电机控制进阶3——PID串级控制(附全套代码下载)
  14. Several alternative term weighting methods for text representation and ~~ ——1. Introduction 引言
  15. BIGEMAP如何发布百度离线地图及二次开发API
  16. 面部识别软件可以帮助女性找到看起来像他们的卵子捐赠者
  17. 测试开发工程师成长日记011 - linux常用命令day03
  18. 二、CRUD操作以及配置解析
  19. HTTPS 前端劫持
  20. informix数据库unload导出数据问题

热门文章

  1. vue cli3 使用vue-svg-loader 出现Invalid Component definition报错
  2. 移动App专项性能测试(Android and iOS)
  3. vmware 虚拟机启动失败, Intel VT-x 处于禁用状态
  4. 服务器配置信息怎么查看,查看服务器配置信息
  5. deck.gl 调研
  6. Word换页不用频繁敲回车
  7. Python和C语言哪个更容易学,感觉学了C语言有点难,只学过C语言的大学生很迷茫?
  8. 带你领略python魔法~免费复制文档数据
  9. (纪中)2417. Loan Repayment【数学】
  10. MCE公司:PROTAC 技术靶向降解 BTK