调用aclrtSetDevice崩溃
收藏回复举报
调用aclrtSetDevice崩溃
t('forum.solved') 已解决
新人帖
发表于2025-03-04 10:20:19
0 查看

C++做模型推理的时候,程序开始阶段,执行aclrtSetDevice崩溃报错:munmap_chunk(): invalid pointer;
image.png

如图所示,代码执行到40行就崩溃;打印信息如下

image.png

昇腾显卡为910B1,驱动为24.1.rc2.b030,nnrt版本为6.3.RC1

ascend/log/run/plog/下面的log如下:[EVENT] ASCENDCL(1557515,start):2025-03-03-16:04:55.290.584 [acl_resource_manager.cpp:89]1557515 GetRuntimeV2Env: runtime v2 flag : model flag = 1, singleOp flag = 1
ascend/log/debug/plog/下面的log如下:[EVENT] PROFILING(1557515,start):2025-03-03-16:04:55.272.009 [msprof_callback_impl.cpp:239] >>> (tid:1557515) Started to register profiling ctrl callback.

我要发帖子