martinruenz / co-fusion

Co-Fusion: Real-time Segmentation, Tracking and Fusion of Multiple Objects
http://visual.cs.ucl.ac.uk/pubs/cofusion/index.html
GNU General Public License v3.0
495 stars 131 forks source link

cudaSafeCall() Runtime API error : invalid texture reference. #17

Closed sathiz91 closed 4 years ago

sathiz91 commented 4 years ago

When i was trying to run ./CoFusion -l ./sliding-clock.klg , It opens the GUI and shows nothing. When I click pause button, I'm getting this following error

co-fusion/Core/Cuda/cudafuncs.cu(646) : cudaSafeCall() Runtime API error : invalid texture reference. co-fusion/Core/GPUTexture.cpp(79) : cudaSafeCall() Runtime API error : invalid texture reference. Screenshot from 2019-09-19 11-45-53

I used install.sh file to build the co-fusion. I didn't get any error while running install.sh. It was successful.

I'm using ubuntu16.04, cuda8.0, GeForce RTX 2070.

sathiz91 commented 4 years ago

When i was trying to run ./CoFusion -l ./sliding-clock.klg , It opens the GUI and shows nothing. When I click pause button, I'm getting this following error

co-fusion/Core/Cuda/cudafuncs.cu(646) : cudaSafeCall() Runtime API error : invalid texture reference. co-fusion/Core/GPUTexture.cpp(79) : cudaSafeCall() Runtime API error : invalid texture reference. Screenshot from 2019-09-19 11-45-53

I used install.sh file to build the co-fusion. I didn't get any error while running install.sh. It was successful.

I'm using ubuntu16.04, cuda8.0, GeForce RTX 2070.

I solved it by removing below line from /core/CMakeLists.txt set(CUDA_ARCH_BIN "30 35 50 52 61" CACHE STRING "Specify 'real' GPU arch to build binaries for, BIN(PTX) format is supported. Example: 1.3 2.1(1.3) or 13 21(13)")