mp3guy / Kintinuous

Real-time large scale dense visual SLAM system
Other
918 stars 287 forks source link

nvcc fatal : Unsupported gpu architecture 'compute_20' #40

Open nonlinear1 opened 6 years ago

nonlinear1 commented 6 years ago
  When I make the Kintinuous program, I was confronted with the error:

nvcc fatal : Unsupported gpu architecture 'compute_20'. the environment for Kintinuous are as follows: OS: ubuntu 16.04; GPU: Nvidia GeForce gtx1070; Kinect2.0 the driver for GPU is 384.111; CUDA is cuda_9.0.176_384.81_linux; At the same time, I succeeded in compiling the elasticfusion and it can works with my kinect2. I was confused, and I guess maybe my drvier for GPU and CUDA are too new. I want to change some files, and make Kintinuous works under the environment. Could someone give me some suggestions? Thank you very much!

nonlinear1 commented 6 years ago

cuda9.0/9.1 don't support compute_20 use the following options when you type cmake comand. -D CUDA_TOOLKIT_ROOT_DIR=/usr/local/cuda-9.0 -D CUDA_ARCH_BIN=6.1 -D CUDA_ARCH_PTX=6.1 just like this when you run cmake. cmake -D CUDA_TOOLKIT_ROOT_DIR=/usr/local/cuda-9.0 -D CUDA_ARCH_BIN=6.1 -D CUDA_ARCH_PTX=6.1 ../src