昇腾(Ascend)310P3

下载并安装官方的Ascend-cann-toolkit_7.0.0_linux-x86_64.run后

执行:

source /usr/local/Ascend/ascend-toolkit/set_env.sh
# 验证atc是否可用
which atc
atc --version

若出现:/usr/local/Ascend/ascend-toolkit/7.0.0/x86_64-linux/bin/atc.bin: error while loading shared libraries: libascend_hal.so: cannot open shared object file: No such file or directory

# 找到 libascend_hal.so 的位置
find /usr/local/Ascend -name "libascend_hal.so" 2>/dev/null

# 将环境变量配置追加到 ~/.bashrc 文件末尾 echo 'export LD_LIBRARY_PATH=/usr/local/Ascend/ascend-toolkit/latest/x86_64-linux/devlib/x86_64:$LD_LIBRARY_PATH' >> ~/.bashrc # 使配置立即生效 source ~/.bashrc

Logo

昇腾计算产业是基于昇腾系列(HUAWEI Ascend)处理器和基础软件构建的全栈 AI计算基础设施、行业应用及服务,https://devpress.csdn.net/organization/setting/general/146749包括昇腾系列处理器、系列硬件、CANN、AI计算框架、应用使能、开发工具链、管理运维工具、行业应用及服务等全产业链

更多推荐