打开微信,使用扫一扫进入页面后,点击右上角菜单,
点击“发送给朋友”或“分享到朋友圈”完成分享
我在离线推理的时候,出现了报错
offline_infer.cpp:(.text+0x28): undefined reference to `cnrtInit'
offline_infer.cpp:(.text+0xac): undefined reference to `cnrtLoadModel'
offline_infer.cpp:(.text+0xc0): undefined reference to `cnrtGetDeviceHandle'
offline_infer.cpp:(.text+0xcf): undefined reference to `cnrtSetCurrentDevice'
offline_infer.cpp:(.text+0xe8): undefined reference to `cnrtGetModelMemUsed'
offline_infer.cpp:(.text+0x11a): undefined reference to `cnrtQueryModelParallelism'
offline_infer.cpp:(.text+0x140): undefined reference to `cnrtCreateFunction'
offline_infer.cpp:(.text+0x160): undefined reference to `cnrtExtractFunction'
offline_infer.cpp:(.text+0x180): undefined reference to `cnrtGetInputDataSize'
offline_infer.cpp:(.text+0x1a0): undefined reference to `cnrtGetOutputDataSize'
offline_infer.cpp:(.text+0x2aa): undefined reference to `cnrtMalloc'
offline_infer.cpp:(.text+0x311): undefined reference to `cnrtMemcpy'
offline_infer.cpp:(.text+0x3bb): undefined reference to `cnrtMalloc'
offline_infer.cpp:(.text+0x4c6): undefined reference to `cnrtCreateRuntimeContext'
offline_infer.cpp:(.text+0x4da): undefined reference to `cnrtSetRuntimeContextDeviceId'
offline_infer.cpp:(.text+0x4ee): undefined reference to `cnrtInitRuntimeContext'
offline_infer.cpp:(.text+0x507): undefined reference to `cnrtRuntimeContextCreateQueue'
offline_infer.cpp:(.text+0x529): undefined reference to `cnrtInvokeRuntimeContext'
offline_infer.cpp:(.text+0x538): undefined reference to `cnrtSyncQueue'
offline_infer.cpp:(.text+0x5b7): undefined reference to `cnrtMemcpy'
offline_infer.cpp:(.text+0x622): undefined reference to `cnrtFree'
offline_infer.cpp:(.text+0x68d): undefined reference to `cnrtFree'
offline_infer.cpp:(.text+0x6d2): undefined reference to `cnrtDestroyQueue'
offline_infer.cpp:(.text+0x6e1): undefined reference to `cnrtDestroyRuntimeContext'
offline_infer.cpp:(.text+0x6f0): undefined reference to `cnrtDestroyFunction'
offline_infer.cpp:(.text+0x6ff): undefined reference to `cnrtUnloadModel'
offline_infer.cpp:(.text+0x704): undefined reference to `cnrtDestroy'
但是我在头文件添加了#include "cnrt.h",请问各位大佬可能是什么原因导致的这个问题?
热门帖子
精华帖子