香橙派提升AI算力到12T

1、引言:

随着计算需求的不断增长,硬件性能的提升变得至关重要,香橙派作为一款性能卓越的嵌入式开发板,其算力的提升对于用户来说意义非凡。本文将详细介绍如何通过官方提供的firmware包升级,将香橙派的算力提升至12T,以满足更高的计算需求。

2、升级步骤

下载firmware包:从香橙派官方网站下载官方工具中提供的firmware包。香橙派官方工具资料链接:

http://www.orangepi.cn/html/hardWare/computerAndMicrocontrollers/service-and-support/Orange-Pi-AIpro.html(固件包已打包放在帖子附件中)

1. 首先将Ascend310B-firmware-7.3.t10.0.b528-rc-signed-opiaipro-12t-1.6ghz-20240605.run上传到OPi AI Pro开发板的Linux系统中

2. 添加执行权限:

chmod +x Ascend310B-firmware-7.3.t10.0.b528-rc-signed-opiaipro-12t-1.6ghz-20240605.run

3. 运行命令更新固件:

 ./Ascend310B-firmware-7.3.t10.0.b528-rc-signed-opiaipro-12t-1.6ghz-20240605.run --full 

4. 输入小写的 y 确认开始更新

5. 更新完成后的打印输出如下所示:

(base) root@orangepiaipro:~# ./Ascend310B-firmware-7.3.t10.0.b528-rc-signed-opiaipro-12t-1.6ghz-20240605.run --full
Verifying archive integrity...  100%   SHA256 checksums are OK. All good.
Uncompressing ASCEND310B FIRMWARE RUN PACKAGE  100%  
[Firmware] [2024-06-24 18:32:24] [INFO]Start time: 2024-0x-xx 18:32:24
[Firmware] [2024-06-24 18:32:24] [INFO]LogFile: /var/log/ascend_seclog/ascend_install.log
[Firmware] [2024-06-24 18:32:24] [INFO]OperationLogFile: /var/log/ascend_seclog/operation.log
[Firmware] [2024-06-24 18:32:24] [INFO]base version is 7.x.xx.
[Firmware] [2024-06-24 18:32:24] [WARNING]Do not power off or restart the system during the installation/upgrade
[Firmware] [2024-06-24 18:32:24] [INFO]Firmware package has been installed on the path /usr/local/Ascend, the version is 7.x.xx., and the version of this package is 7.x.xx.,do you want to continue?  [y/n]

y

[Firmware] [2024-06-24 18:33:02] [INFO]upgradePercentage: 0%
[Firmware] [2024-06-24 18:33:10] [INFO]upgradePercentage: 4%
[Firmware] [2024-06-24 18:33:19] [INFO]upgradePercentage: 36%
[Firmware] [2024-06-24 18:33:28] [INFO]upgradePercentage: 99%
[Firmware] [2024-06-24 18:33:33] [INFO]upgradePercentage: 100%
[Firmware] [2024-06-24 18:33:33] [INFO]Firmware package installed successfully! Reboot now or after driver installation for the installation/upgrade to take effect.
[Firmware] [2024-06-24 18:33:33] [INFO]End time: 2024-06-24 18:33:33

6. 断电重启系统

7. 重启系统后使用下面的命令切换到12T的AI算力档位:

(base) root@orangepiaipro:~# npu-smi set -t nve-level -i 0 -c 0 -d 1
        Status                         : OK
        Message                        : The nve-level of the chip is set successfully.

8. 最后再次重启系统,如果使用下面的命令能看到aicore freq变为了750,说明切换到了12T的AI算力

(base) root@orangepiaipro:~# grep "aicore freq" /var/log/npu/slog/device-0/device-0*
[INFO] LPM(-1,null):1970-01-01-00:00:14.817000 [avs] [AvsProfileLimitUpdate 55] profile[1] aicore freq[750] cpu freq[1600] config done
[INFO] LPM(-1,null):1970-01-01-00:00:14.456000 [avs] [AvsProfileLimitUpdate 55] profile[1] aicore freq[750] cpu freq[1600] config done

3、算力提升效果

执行gitee样例YOLOV5VIDEO样例,升级前后进行对比

cke_35796.png

cke_62424.png


在进行升级之后每帧的处理时间提升了10ms左右

模型及推理代码链接(需自行添加打印)

https://gitee.com/ascend/EdgeAndRobotics/tree/master/Samples/YOLOV5Video

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值