×

签到

分享到微信

打开微信,使用扫一扫进入页面后,点击右上角菜单,

点击“发送给朋友”或“分享到朋友圈”完成分享

MLU100的代码转移至在MLU220上编译,部分API不支持的情况 已解决 ht2021-10-18 09:58:49 回复 1 查看 技术答疑 使用求助
MLU100的代码转移至在MLU220上编译,部分API不支持的情况
分享到:


MLU100上的源码:

cnrtMallocBatchByDescArray(&inputMluPtrS, inferencer_->inDescs(),

                 inferencer_->inBlobNum(),

                 inferencer_->dataParallel());


make之后,MLU220上的报错:

 error: 'cnrtMallocBatchByDescArray' was not declared in this scope  

                  inferencer_->dataParallel(), CNRT_MEM_TRANS_DIR_HOST2DEV));

同理:

cnrtGetInputDataDesc' was not declared in this scope 

                  cnrtGetInputDataDesc(&inDescs_, &inBlobNum_, function_);


error: 'cnrtGetOutputDataDesc' was not declared in this scope

                  cnrtGetOutputDataDesc(&outDescs_, &outBlobNum_, function_);


 error: 'cnrtGetHostDataCount' was not declared in this scope

                  cnrtGetHostDataCount(desc, &in_count);


error: 'cnrtGetDataShape' was not declared in this scope

                  cnrtGetDataShape(desc, &inN, &inC, &inH, &inW);


error: 'cnrtInitFuncParam_t' was not declared in this scope

                  cnrtInitFuncParam_t initFuncParam;


这些未定义的API名称同样存在错误。

版权所有 © 2024 寒武纪 Cambricon.com 备案/许可证号:京ICP备17003415号-1
关闭