CANN toolkit runtime 错误
收藏回复举报
CANN toolkit runtime 错误
t('forum.solved') 已解决
新人帖
发表于2025-11-21 12:12:53
0 查看
我有一台搭载Atlas 300 加速卡 [设备型号d100(版本20),Atlas 300I Inference Card (Model 3010)]、运行麒麟操作系统(Kylin OS)的泰山服务器。
已成功安装的A300-3010-npu-driver-24.1.0驱动程序及对应固件。
驱动程序运行正常,npu-smi工具报告所有设备均状态正常且已完成初始化。

我们已使用以下命令成功安装CANN工具包8.2RC版本

[tester@kylin ~]$ sudo ./Ascend-cann-toolkit_8.2.RC2_linux-aarch64.run --install --chip=Ascend310
...

===========
= Summary =
===========

Driver:   Installed in /usr/local/Ascend/driver.
Toolkit:  Ascend-cann-toolkit_8.2.RC2_linux-aarch64 install success, installed in /usr/local/Ascend.

然后我们编译了一个测试小程序来运行:

[HwHiAiUser@kylin test]$ cat aclTest.cpp 
#include <iostream>

#include <acl/acl.h>

int main()
{
	aclError ret = aclInit(nullptr);
	std::cout << "aclInit(NULL) = " << ret << std::endl;
	if (ret != ACL_ERROR_NONE)
		return ret;
	ret = aclFinalize();
	std::cout << "aclFinalize() = " << ret << std::endl;
	if (ret != ACL_ERROR_NONE)
		return ret;
	return 0;
}
[HwHiAiUser@kylin test]$ g++ -I/usr/local/Ascend/ascend-toolkit/latest/acllib/include -std=c++14 -o aclTest -L/usr/local/Ascend/ascend-toolkit/latest/acllib/lib64/stub/ -lascendcl aclTest.cpp

但是这个小程序运行失败了,下面是具体的log信息。

请麻烦看下这大概是什么原因造成的?谢谢!

[HwHiAiUser@kylin test]$ source /usr/local/Ascend/ascend-toolkit/set_env.sh 
[HwHiAiUser@kylin test]$ ./aclTest 
aclInit(NULL) = 1343225857
[HwHiAiUser@kylin test]$ cat ~/ascend/log/debug/plog/plog-456468_20251114231857496.log 
[ERROR] RUNTIME(456468,aclTest):2025-11-14-23:18:57.496.328 [runtime_keeper.cc:156]456468 CreateRuntimeImpl:[INIT][DEFAULT]Open (null) failed, dlerror() = (null)
[ERROR] RUNTIME(456468,aclTest):2025-11-14-23:18:57.496.332 [runtime_keeper.cc:239]456468 BootRuntime:[INIT][DEFAULT]report error module_type=6, module_name=EE9999
[ERROR] RUNTIME(456468,aclTest):2025-11-14-23:18:57.496.336 [runtime_keeper.cc:239]456468 BootRuntime:[INIT][DEFAULT]Runtime boot failed, new Runtime failed.
[ERROR] RUNTIME(456468,aclTest):2025-11-14-23:18:57.496.403 [api.cc:15]456468 Instance:[INIT][DEFAULT]Runtime::Instance == nullptr
[ERROR] RUNTIME(456468,aclTest):2025-11-14-23:18:57.496.407 [api_c.cc:2108]456468 rtRegTaskFailCallbackByModule:[INIT][DEFAULT]Null apiInstance pointer, ErrCode=507000
[ERROR] GE(456468,aclTest):2025-11-14-23:18:57.496.727 [error_tracking.cc:121]456468 RegErrorTrackingCallBack: ErrorNo: 1343225859(Failed to call runtime API!) [INIT][DEFAULT]Call rt api failed, ret: 0x7BC78
[ERROR] GE(456468,aclTest):2025-11-14-23:18:57.496.746 [ge_executor.cc:310]456468 Initialize: ErrorNo: 4294967295(failed) [INIT][DEFAULT]Assert ((RegErrorTrackingCallBack()) == ge::SUCCESS) failed
[ERROR] ASCENDCL(456468,aclTest):2025-11-14-23:18:57.496.753 [acl.cpp:308]456468 aclInit: [INIT][DEFAULT][Init][Geexecutor]init ge executor failed, ge errorCode = 1343225857
[HwHiAiUser@kylin test]$ cat ~/ascend/log/run/plog/plog-456468_20251114231856648.log 
[INFO] RUNTIME(456468,aclTest):2025-11-14-23:18:56.647.882 [task_fail_callback_data_manager.cc:58] 456468 TaskFailCallBackManager: Constructor.
[EVENT] PROFILING(456468,aclTest):2025-11-14-23:18:56.688.819 [msprof_callback_impl.cpp:358] >>> (tid:456468) Started to register profiling ctrl callback.
[EVENT] PROFILING(456468,aclTest):2025-11-14-23:18:56.688.900 [msprof_callback_impl.cpp:365] >>> (tid:456468) Started to register profiling hash id callback.
[INFO] PROFILING(456468,aclTest):2025-11-14-23:18:56.688.905 [prof_atls_plugin.cpp:122] (tid:456468) RegisterProfileCallback, callback type is 7
[EVENT] PROFILING(456468,aclTest):2025-11-14-23:18:56.688.908 [msprof_callback_impl.cpp:372] >>> (tid:456468) Started to register profiling enable host freq callback.
[INFO] PROFILING(456468,aclTest):2025-11-14-23:18:56.688.911 [prof_atls_plugin.cpp:122] (tid:456468) RegisterProfileCallback, callback type is 8
[EVENT] PROFILING(456468,aclTest):2025-11-14-23:18:56.688.914 [msprof_callback_impl.cpp:379] >>> (tid:456468) Started to register profiling typeId callback.
[INFO] PROFILING(456468,aclTest):2025-11-14-23:18:56.688.916 [prof_atls_plugin.cpp:122] (tid:456468) RegisterProfileCallback, callback type is 6
[INFO] PROFILING(456468,aclTest):2025-11-14-23:18:56.700.309 [prof_atls_plugin.cpp:222] (tid:456468) Module[45] register callback of ctrl handle.
[INFO] GE(456468,aclTest):2025-11-14-23:18:56.939.444 [op_tiling_manager.cc:109]456468 ~FuncPerfScope:[GEPERFTRACE] The time cost of OpTilingManager::LoadSo is [239107] micro seconds.
[INFO] PROFILING(456468,aclTest):2025-11-14-23:18:56.979.396 [prof_atls_plugin.cpp:222] (tid:456468) Module[6] register callback of ctrl handle.
[INFO] RUNTIME(456468,aclTest):2025-11-14-23:18:57.496.302 [runtime_keeper.cc:142] 456468 GetLibRuntimeSoName: Find chipType 0, soName (null)
[INFO] RUNTIME(456468,aclTest):2025-11-14-23:18:57.650.034 [task_fail_callback_data_manager.cc:63] 456468 ~TaskFailCallBackManager: Destructor.
[INFO] ATRACE(456468,aclTest):2025-11-14-23:18:57.826.233 [stacktrace_signal.c:194](tid:456468) unregister all signal handler, can not capture signal

我要发帖子