aclInit () at /usr/local/Ascend/ascend-toolkit/latest/fwkacllib/lib64/libascendcl.so错误
收藏回复举报
aclInit () at /usr/local/Ascend/ascend-toolkit/latest/fwkacllib/lib64/libascendcl.so错误
新人帖
发表于2023-11-15 18:43:51
0 查看

我在运行自己改写的cann示例到项目中的时候,第一步aclError ret = aclInit(aclConfigPath);初始化代码就出现了问题,请问该如何解决。

gdb调试后的错误:

#0  0x0000fffff77e51f0 in vtable for std::basic_ifstream<char, std::char_traits<char> > () at /usr/lib/aarch64-linux-gnu/libstdc++.so.6 

#1  0x0000fffff2282a94 in  () at /usr/local/Ascend/ascend-toolkit/latest/fwkacllib/lib64/libge_runner.so 

#2  0x0000fffff2283cd4 in  () at /usr/local/Ascend/ascend-toolkit/latest/fwkacllib/lib64/libge_runner.so 

#3  0x0000fffff2bfe4e4 in nlohmann::detail::parser<nlohmann::basic_json<std::map, std::vector, std::string, bool, long, unsigned long, double, std::allocator, nlohmann::adl_serializer> >::get_token() () at /usr/local/Ascend/ascend-toolkit/latest/fwkacllib/lib64/libge_runner.so 

#4  0x0000fffff2bfd17c in nlohmann::detail::parser<nlohmann::basic_json<std::map, std::vector, std::string, bool, long, unsigned long, double, std::allocator, nlohmann::adl_serializer> >::parser(std::shared_ptr<nlohmann::detail::input_adapter_protocol>&&, std::function<bool (int, nlohmann::detail::parser<nlohmann::basic_json<std::map, std::vector, std::string, bool, long, unsigned long, double, std::allocator, nlohmann::adl_serializer> >::parse_event_t, nlohmann::basic_json<std::map, std::vector, std::string, bool, long, unsigned long, double, std::allocator, nlohmann::adl_serializer>&)>, bool) () at /usr/local/Ascend/ascend-toolkit/latest/fwkacllib/lib64/libge_runner.so 

#5  0x0000fffff05e1c98 in nlohmann::operator>>(std::istream&, nlohmann::basic_json<std::map, std::vector, std::string, bool, long, unsigned long, double, std::allocator, nlohmann::adl_serializer>&) () at /usr/local/Ascend/ascend-toolkit/latest/fwkacllib/lib64/liberror_manager.so 

#6  0x0000fffff05dbde0 in ErrorManager::ReadJsonFile(std::string const&, void*) () at /usr/local/Ascend/ascend-toolkit/latest/fwkacllib/lib64/liberror_manager.so 

#7  0x0000fffff05db440 in ErrorManager::ParseJsonFile(std::string) () at /usr/local/Ascend/ascend-toolkit/latest/fwkacllib/lib64/liberror_manager.so 

#8  0x0000fffff05da0b8 in ErrorManager::Init(std::string) () at /usr/local/Ascend/ascend-toolkit/latest/fwkacllib/lib64/liberror_manager.so 

#9  0x0000fffff05da20c in ErrorManager::Init() () at /usr/local/Ascend/ascend-toolkit/latest/fwkacllib/lib64/liberror_manager.so 

---Type <return> to continue, or q <return> to quit---c 

#10 0x0000fffff5ca2978 in aclInit () at /usr/local/Ascend/ascend-toolkit/latest/fwkacllib/lib64/libascendcl.so

本帖最后由 匿名用户 于 2023/11/22 11:49:27 编辑

我要发帖子