MNN icon indicating copy to clipboard operation
MNN copied to clipboard

cuda后端编译成功,为啥推理时还不能用

Open rlczddl opened this issue 2 years ago • 3 comments

勾选了MNN_CUDA,MNN_USE_SYSTEM_LIB,取消了MNN_SEP_BUILD,ubuntu18上成功编译,推理时采用cuda后端还是报Can't Find type=2 backend, use 0 instead

rlczddl avatar Aug 04 '22 03:08 rlczddl

把 cmakecache.txt 及 build 目录删除再编试下

jxt1234 avatar Aug 04 '22 09:08 jxt1234

这之后又试了好多次,还是推理时cuda后端不能用,可能是什么原因呢?opencl可以用. 我的环境是ubuntu18 cuda11.1 mnn2.0

rlczddl avatar Aug 05 '22 09:08 rlczddl

更新下,MNN2.0和MNN1.2都试了,编译无错误信息,链接到程序里会报 对'MNN::CUDA:xxx'未定义的引用错误,看错误似乎是编译mnn动态库时cuda后端没法成功编进去,但事实上我已经手动指定了相应的cuda头文件和库文件 image

rlczddl avatar Aug 13 '22 10:08 rlczddl

Please update lastest mnn code, retry again. If having any problem, please let me know.

bitxsw93 avatar Feb 17 '23 03:02 bitxsw93

Marking as stale. No activity in 60 days.

github-actions[bot] avatar Jan 29 '24 09:01 github-actions[bot]