Ascend DMI工具执行算力测试、带宽测试、功能测试等功能时报错,提示Failed to load the libascendcl.so dynamic library. Check the environment configuration dependency.
以执行算力测试为例,报错显示如下:
1 2 3 | root@****:~# ascend-dmi -f This test will affect the business on this server. Do you want to continue?(Y/N)y Failed to load the libascendcl.so dynamic library. Check the environment configuration dependency. |
未安装CANN软件包或未配置CANN软件的环境变量。
参考5.1添加环境变量章节,安装对应软件包或配置环境变量。
当前环境安装了ascend_toolkit的开发插件包,导入对应环境变量后算力测试正常,如下显示:
1 2 3 4 5 6 7 8 | root@****:~# source /usr/local/Ascend/ascend-toolkit/set_env.sh root@****:~# ascend-dmi -f This test will affect the business on this server. Do you want to continue?(Y/N)y --------------------------------------------------------------------------------------- Device Execute Times Duration(ms) TFLOPS@FP16 Power(W) --------------------------------------------------------------------------------------- 0 192,000,000 1536 262.144 242.899994 --------------------------------------------------------------------------------------- |