运行ascendcl的bash sample_run.sh时无法找到动态库
收藏回复举报
运行ascendcl的bash sample_run.sh时无法找到动态库
t('forum.solved') 已解决
发表于2024-05-22 14:59:37
0 查看

编译可以通过,但是执行报错:

[ERROR]: stub library cannot be used for execution, please check your environment variables and compilation options to make sure you use the correct ACL library.

错误码为100039:运行应用前配置的动态库路径是编译桩的路径,不是正确的动态库路径

我的动态库路径为:

$HOME/Ascend/ascend-toolkit/mdc/x86_64-linux/x86_64-linux/devlib/x86_64/libascendcl.so,这个文件夹下也确实存在libascendcl.so。

‘ldd main’后每个动态库都可以在文件夹下找到,为什么还会报错呢?

cke_294.png

我要发帖子