工程化算子开发-单算子API调用步骤报错:[ERROR] Synchronize stream failed. error code is 507035
收藏回复举报
工程化算子开发-单算子API调用步骤报错:[ERROR] Synchronize stream failed. error code is 507035
t('forum.solved') 已解决
新人帖
发表于2025-03-28 19:51:42
0 查看

根据“AscenC 算子开发指南-工程化算子开发”进行算子开发,在完成算子实现、编译部署步骤之后,进行“单算子API调用”步骤的验证,在单算子API调用工程AclNNInvocation路径下执行bash run.sh,屏幕输出结果如下:

.../workspace/operators/SM4CTR/AclNNInvocation# bash run.sh 
Generated input data: 1024 bytes
Generated key: 16 bytes
Generated IV: 16 bytes
INFO: generate input data success!
-- The C compiler identification is GNU 11.4.0
-- The CXX compiler identification is GNU 11.4.0
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working C compiler: /usr/bin/cc - skipped
-- Detecting C compile features
-- Detecting C compile features - done
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Check for working CXX compiler: /usr/bin/c++ - skipped
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- env INC_PATH: /usr/local/Ascend/ascend-toolkit/latest
-- env LIB_PATH: /usr/local/Ascend/ascend-toolkit/latest/lib64
-- Configuring done
-- Generating done
-- Build files have been written to: /data/dsr/workspace/operators/SM4CTR/AclNNInvocation/build
INFO: cmake success!
[ 20%] Building CXX object CMakeFiles/execute_sm4ctr_op.dir/operator_desc.cpp.o
[ 40%] Building CXX object CMakeFiles/execute_sm4ctr_op.dir/op_runner.cpp.o
[ 60%] Building CXX object CMakeFiles/execute_sm4ctr_op.dir/main.cpp.o
[ 80%] Building CXX object CMakeFiles/execute_sm4ctr_op.dir/common.cpp.o
[100%] Linking CXX executable /data/dsr/workspace/operators/SM4CTR/AclNNInvocation/output/execute_sm4ctr_op
[100%] Built target execute_sm4ctr_op
INFO: make success!
INFO: execute SM4CTR op!
[INFO]  Set device[0] success
[INFO]  Get RunMode[1] success
[INFO]  Init resource success
[INFO]  Loaded input data from file
[INFO]  Loaded key from file
[INFO]  Loaded IV from file
Input Data (showing first 32 bytes):
ad f3 23 e0 43 fa 6b 86 a5 3c ca 25 35 74 a7 39 
2f cf 6f cf 9a 85 e0 ef 53 34 12 72 2f 94 e8 78 

Key (showing first 16 bytes):
9c d7 2e fb af 11 44 9b b7 5f b6 72 13 5f e9 83 

IV (showing first 16 bytes):
16 5d dd 9c ab 9c 5c 1b 4d 6f 1c ad 1d 23 85 11 

[INFO]  Input data setup complete
[INFO]  Running SM4CTR operation...
[INFO]  Copy input[0] success
[INFO]  Copy input[1] success
[INFO]  Copy input[2] success
[INFO]  Create stream success
[INFO]  Execute aclnnSM4CTRGetWorkspaceSize success, workspace size 16777216
[INFO]  Execute aclnnSM4CTR success
[ERROR]  Synchronize stream failed. error code is 507035
[ERROR]  Run op failed
[INFO]  Reset Device success
[INFO]  Destroy resource success
ERROR: acl executable run failed! please check your project!

/root/ascend/log/debug/plog 路径下日志信息中的ERROR条目如下:

第一条ERROR:
[ERROR] RUNTIME(736700,execute_sm4ctr_op):2025-03-28-11:35:30.409.939 [stars_engine.cc:1411]736700 ProcLogicCqReport:Task run failed, device_id=0, stream_id=2, task_id=0, sqe_type=0(ffts), errType=0x1(task exception), sqSwStatus=0
....
后续ERROR条目:
[ERROR] RUNTIME(736700,execute_sm4ctr_op):2025-03-28-11:35:30.519.203 [device_error_proc.cc:1409]736700 ProcessStarsCoreErrorInfo:report error module_type=5, module_name=EZ9999
[ERROR] RUNTIME(736700,execute_sm4ctr_op):2025-03-28-11:35:30.519.209 [device_error_proc.cc:1409]736700 ProcessStarsCoreErrorInfo:The error from device(chipId:0, dieId:0), serial number is 7, there is an aivec error exception, core id is 18, error code = 0, dump info: pc start: 0x1240c0017000, current: 0x1240c0017f00, vec error info: 0x5f000000b9, mte error info: 0x1c43c12fce, ifu error info: 0x6536133430380, ccu error info: 0x9e60540012068077, cube error info: 0, biu error info: 0, aic error mask: 0x6500020bd000288, para base: 0x124100340000.
[INFO] GE(736700,execute_sm4ctr_op):2025-03-28-11:35:30.519.279 [error_manager.cc:355]736700 ReportInterErrMessage:report error_message, error_code:EZ9999, work_stream_id:73670736700, error_mode:0
[ERROR] RUNTIME(736700,execute_sm4ctr_op):2025-03-28-11:35:30.519.306 [device_error_proc.cc:1421]736700 ProcessStarsCoreErrorInfo:report error module_type=5, module_name=EZ9999
[ERROR] RUNTIME(736700,execute_sm4ctr_op):2025-03-28-11:35:30.519.311 [device_error_proc.cc:1421]736700 ProcessStarsCoreErrorInfo:The extend info: errcode:(0, 0x1000, 0) errorStr: VEC supports illegal configurations in commands. fixp_error0 info: 0x3c12fce, fixp_error1 info: 0x1c fsmId:0, tslot:1, thread:0, ctxid:0, blk:0, sublk:0, subErrType:4.
[INFO] GE(736700,execute_sm4ctr_op):2025-03-28-11:35:30.519.328 [error_manager.cc:355]736700 ReportInterErrMessage:report error_message, error_code:EZ9999, work_stream_id:73670736700, error_mode:0
[DEBUG] RUNTIME(736700,execute_sm4ctr_op):2025-03-28-11:35:30.519.338 [device_error_proc.cc:1314] 736700 ProcessStarsCoreErrorOneMapInfo: core errorCode:1000
[ERROR] RUNTIME(736700,execute_sm4ctr_op):2025-03-28-11:35:30.519.341 [device_error_proc.cc:1409]736700 ProcessStarsCoreErrorInfo:report error module_type=5, module_name=EZ9999
......

尊敬的开发者你们好,我被这个问题困扰很久了,检索了社区和gitee issue中所有相关和类似的问题,还是没能解决问题,非常期待能得到你们的帮助和解答,非常感谢!

我要发帖子