当前位置:网站首页>Some error reporting assemblies of cann code
Some error reporting assemblies of cann code
2022-06-11 21:23:00 【Hua Weiyun】
- [acl_init]-841: aclInit failed with 100002.
Introduce the background , Namely CANN There are... In the experience camp 2 A series connection of small functions . In this way, first of all, in form 2 The code of three small functions is connected in series , After compilation , This error occurs when running .
First look at the meaning of the error code , stay include/acl/acl_base.h Defined in :
static const int ACL_SUCCESS = 0;static const int ACL_ERROR_INVALID_PARAM = 100000;static const int ACL_ERROR_UNINITIALIZE = 100001;static const int ACL_ERROR_REPEAT_INITIALIZE = 100002; According to the error code 100002, So the error message is :ACL_ERROR_REPEAT_INITIALIZE, This means repeated initialization .
There is indeed repeated initialization , because 2 All the small functions have been initialized at the beginning , Although the initialization is also done at the end , However, it is impossible to initialize after de initialization , It's a little hard to understand , Let's look it up aclInit Documents :
The constraint description is very clear :
You can only call once in a process aclInit Interface .
And media data processing initialization hi_mpi_sys_init It can be done repeatedly .
In standard form , Need to apply AscendCL Call this interface after running the management resources .
In a process , This interface can be called Initialize repeatedly , Do not return failed .
[acl_destory_resource]-877: destroy context failed with 100000.
[acl_destory_resource]-881: reset device(0) failed with 507007.
[acl_destory_resource]-885: finalize acl failed with 100037.
These errors are listed together , All of them are error codes reported when resources are released . The cause of error reporting is similar to the error reporting initialized above , I.e. caused by repeated release . The error codes are defined in 2 In the header file , as follows .
include/acl/acl_base.h:
static const int ACL_ERROR_INVALID_PARAM = 100000; // Release after release content The pointer is empty , So content The pointer is an invalid parameter static const int ACL_ERROR_REPEAT_FINALIZE = 100037;include/acl/error_codes/rt_error_codes.h:static const int32_t ACL_ERROR_RT_CONTEXT_RELEASE_ERROR = 507007; // context release error
summary :
- acl initialization 、 De initialization cannot be repeated
- Media data preprocessing hi_mpi Can repeat
边栏推荐
- Serval and Rooted Tree(CF1153D)-DP
- [Part 14] source code analysis and application details of completionservice class [key]
- 一步步把 SAP UI5 应用部署到 SAP BTP Kyma 运行环境中去
- RANSAC提取平面(MATLAB内置函数)
- RANSAC extraction plane (matlab built-in function)
- BUG -- coredump使用
- MySQL add adds multiple new fields and specifies the field location
- Frequency domain filter
- Serval and rooted Tree (cf1153d) - DP
- Goland中在文件模板中为go文件添加个人声明
猜你喜欢

Release of version 5.6 of rainbow, add multiple installation methods, and optimize the topology operation experience

Goland中在文件模板中为go文件添加个人声明

Database daily question --- day 9: salesperson

Which Bluetooth headset is better within 500? Inventory of gifts for girls' Day

Codeforces Round #744 (Div. 3) 解题报告

How to manually drag nodes in the Obsidian relationship graph

Live broadcast with practice | 30 minutes to build WordPress website with Alibaba cloud container service and container network file system

Application scenario: wide application of Poe network card in NDI technology for live broadcast program production

Syntax of SQL

Live broadcast with practice | 30 minutes to build WordPress website with Alibaba cloud container service and container network file system
随机推荐
Only 38 years old! Zhou Chuan, a researcher of the Chinese Academy of Sciences, died unfortunately. Rao Yi sent a document to mourn: he guided me when he was still my student
One article to show you how to understand the harmonyos application on the shelves
bzoj3188 Upit
Comprehensive RTL code design method and precautions
MySQL add adds multiple new fields and specifies the field location
RANSAC提取平面(MATLAB内置函数)
Cs144 lab0 lab1 record
JVM method area
Website online customer service system Gofly source code development log - 2 Develop command line applications
Brain cell membrane equivalent neural network training code
Go language functions
ORA-04098: trigger ‘xxx.xxx‘ is invalid and failed re-validation
JVM object allocation policy TLAB
Application scenario: wide application of Poe network card in NDI technology for live broadcast program production
Online excel file parsing and conversion to JSON format
应用业务层修改
A man always becomes a man and a man always arrives (progress, harvest, growth, self-confidence)
The secret of derating - don't challenge Datasheet
JS monitor scrolling touch bottom load more_ Browser scrolls to the bottom to load more
八、BOM - 章节课后练习题及答案