ubuntu16.04 编译kinfu_remake-master错误集锦

来源:互联网 发布:scala编程思想 pdf下载 编辑:程序博客网 时间:2024/05/22 10:34
  1. “Can’t determine number of cores. Unknown SM version 6.1!”如图所示:
    这里写图片描述

    解决方法:把kfusion下src下的core.cpp中的67行改成下面的:
    SMtoCores gpuArchCoresPerSM[] = { { 0x10, 8 }, { 0x11, 8 }, { 0x12, 8 }, { 0x13, 8 }, { 0x20, 32 }, { 0x21, 48 }, {0x30, 192}, {0x35, 192}, {0x50, 128}, {0x52, 128}, {0x61, 1920}, { -1, -1 } };
    把67行杠掉,但是后来自己在写这篇博客时,为了取错误的图片,67行处没改,最后还是出了三维重建的图像,不知道为啥,在朱鸣鸣电脑上跑的时候也出现了这个错,也能出图像,没弄特别明白

  2. KinFu2 error: invalid device function
    没图片了,只上解决方法吧:把总的cmakelist中的list处换成
    list(APPEND CUDA_NVCC_FLAGS “-gencode;arch=compute_20,code=sm_20;-gencode;arch=compute_20,code=sm_21;-gencode;arch=compute_30,code=sm_30;-gencode;arch=compute_35,code=sm_35;-#gencode;arch=compute_50,code=sm_50;-gencode;arch=compute_52,code=sm_52;-gencode;arch=compute_61,code=sm_61”)
    其实就是在最后加了一句:-gencode;arch=compute_61,code=sm_61

参考链接:https://github.com/Nerei/kinfu_remake/issues/9

原创粉丝点击