stub library cannot be used for execution
收藏回复举报
stub library cannot be used for execution
t('forum.solved') 已解决
新人帖
发表于2025-03-28 18:48:36
0 查看
我尝试使用atc工具转换yolov8后的om模型进行推理,安装了aclruntime和bench工具之后,准备推理。但是报错
[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.
[ACL ERROR] (null)
[ERROR] acl init failed
[ERROR] device manager init devices failed. ret=100039
[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.
[ACL ERROR] (null)
[ERROR] acl open device 0 failed
[ERROR] create context failed. ret=100039
Traceback (most recent call last):
  File "detect.py", line 80, in <module>
    model = InferSession(0, model_path)
  in __init__
    self.session = aclruntime.InferenceSession(self.model_path, self.device_id, self.options)
RuntimeError: [100039][Undefined error code]

有没有人能帮帮我,我也尝试了使用export NPU_HOST_LIB=/usr/local/Ascend/ascend-toolkit/latest/runtime/lib64/stub/,但是还是没有用,依然包这个错。我的ascend版本是6.0.1,我想知道到底该怎么做呀。有没有好心人帮帮我。我在的是ubuntu20.04,x86-64架构,atc -h都是正常的,转换模型也没有报错。

我要发帖子