anuranbaka / OpenDTAM

An open source implementation of DTAM
Other
286 stars 150 forks source link

Error with opencv 2.4.9? #53

Closed pengwangucla closed 7 years ago

pengwangucla commented 7 years ago

I build the code with 2.4.9 backport with ubuntu 14.04, opencv 2.4.9 and cuda 7.5 using the GPU GFORCE GTX TITAN X.

When building opencv I change the arch_bin to 5.2 to make it match the gpu CC.

But I met the following error when runing ./a.out
Anyone can help me understand why?

OpenCV Error: Gpu API call (invalid device function) in globalWeightedBoundsCostCaller, file /media/Workspace2/pengwang/3DRepresent/extern/OpenDTAM/Cpp/CostVolume/CostVolume.cu, line 25 terminate called after throwing an instance of 'cv::Exception' what(): /media/Workspace2/pengwang/3DRepresent/extern/OpenDTAM/Cpp/CostVolume/CostVolume.cu:25: error: (-217) invalid device function in function globalWeightedBoundsCostCaller

pengwangucla commented 7 years ago

I fix it by changing cmakelist.txt -gencode to the right compute compatibility