Nerei / kinfu_remake

Optimized and reworked version of Kinfu
BSD 3-Clause "New" or "Revised" License
339 stars 125 forks source link

error: no suitable constructor exists to convert from "unsigned short" to "__half" #35

Open Essen4 opened 5 years ago

Essen4 commented 5 years ago

kfusion/CMakeFiles/kfusion.dir/build.make:379: recipe for target 'kfusion/CMakeFiles/kfusion.dir/src/cuda/kfusion_generated_proj_icp.cu.o' failed make[2]: *** [kfusion/CMakeFiles/kfusion.dir/src/cuda/kfusion_generated_proj_icp.cu.o] Error 1 /home/gcw/kinfu_remake-master/kfusion/src/cuda/device.hpp(76): error: no suitable constructor exists to convert from "unsigned short" to "__half"

/home/gcw/kinfu_remake-master/kfusion/src/cuda/device.hpp(79): error: no suitable constructor exists to convert from "unsigned short" to "__half"

2 errors detected in the compilation of "/tmp/tmpxft_0000189b_00000000-14_tsdf_volume.compute_20.cpp1.ii". CMake Error at kfusion_generated_tsdf_volume.cu.o.cmake:266 (message): Error generating file /home/gcw/kinfu_remake-master/build/kfusion/CMakeFiles/kfusion.dir/src/cuda/./kfusion_generated_tsdf_volume.cu.o

how to solve it? please help me

zj19941113 commented 5 years ago

I have the same problem. Have you solved it, please?

/home/zhoujie/fusion/kinfu_remake/kfusion/src/cuda/imgproc.cu(268): error: no operator "=" matches these operands
            operand types are: __half = unsigned short

1 error detected in the compilation of "/tmp/tmpxft_000031f3_00000000-13_imgproc.compute_50.cpp1.ii".
CMake Error at kfusion_generated_imgproc.cu.o.cmake:266 (message):
  Error generating file
  /home/zhoujie/fusion/kinfu_remake/build/kfusion/CMakeFiles/kfusion.dir/src/cuda/./kfusion_generated_imgproc.cu.o
Essen4 commented 5 years ago

I have the same problem. Have you solved it, please?

/home/zhoujie/fusion/kinfu_remake/kfusion/src/cuda/imgproc.cu(268): error: no operator "=" matches these operands
            operand types are: __half = unsigned short

1 error detected in the compilation of "/tmp/tmpxft_000031f3_00000000-13_imgproc.compute_50.cpp1.ii".
CMake Error at kfusion_generated_imgproc.cu.o.cmake:266 (message):
  Error generating file
  /home/zhoujie/fusion/kinfu_remake/build/kfusion/CMakeFiles/kfusion.dir/src/cuda/./kfusion_generated_imgproc.cu.o

i guess you are chinese give me your wechat

zj19941113 commented 5 years ago

jdns87v5

etudemin commented 5 years ago

have the same problem here.

Is there any hint to fix it? thanks a lot!

vgg4resnet commented 5 years ago

same problem ,how do u sovle it

FrankGoTo commented 3 years ago

i have faced same problem too. Have you solve it? Thanks

zhenghanfeng commented 3 years ago

I solve this problem by using a old version of kinfu_remake which not supporting cuda9 or higher.