Open yusssa opened 6 years ago
@yusssa have you found a solution to this?
I chenged "CUDA_NVCC_FLAGS:STRING=-arch=sm_13" to "CUDA_NVCC_FLAGS:STRING=-arch=sm_30( or sm61)" in CMakeCache.txt. Then I can execute catkin_make. but after someday , I encountered "login loop".
At the first time(when I only installed cuda, ros, darknet_ros), I didn't encountered error "nvcc fatal : Value 'sm_13' is not defined for option 'gpu-architecture'. But after I make source code that is used opencv" , I encountered the error.
Hello, I installed darknet_ros and executed catkin_make. Then I encountered the following error. Could you let me know how to resolve the problem?
[ 42%] Building NVCC (Device) object darknet_ros/darknet_ros/CMakeFiles/darknet_ros_lib.dir//darknet/src/darknet_ros_lib_generated_activation_kernels.cu.o [ 42%] Building NVCC (Device) object darknet_ros/darknet_ros/CMakeFiles/darknet_ros_lib.dir//darknet/src/darknet_ros_lib_generated_maxpool_layer_kernels.cu.o [ 43%] Building NVCC (Device) object darknet_ros/darknet_ros/CMakeFiles/darknet_ros_lib.dir//darknet/src/darknet_ros_lib_generated_crop_layer_kernels.cu.o [ 44%] Building NVCC (Device) object darknet_ros/darknet_ros/CMakeFiles/darknet_ros_lib.dir/__/darknet/src/darknet_ros_lib_generated_avgpool_layer_kernels.cu.o -- Removing /home/mori/catkin_ws/build/darknet_ros/darknet_ros/CMakeFiles/darknet_ros_lib.dir//darknet/src/./darknet_ros_lib_generated_maxpool_layer_kernels.cu.o -- Removing /home/mori/catkin_ws/build/darknet_ros/darknet_ros/CMakeFiles/darknet_ros_lib.dir//darknet/src/./darknet_ros_lib_generated_avgpool_layer_kernels.cu.o -- Removing /home/mori/catkin_ws/build/darknet_ros/darknet_ros/CMakeFiles/darknet_ros_lib.dir//darknet/src/./darknet_ros_lib_generated_activation_kernels.cu.o /usr/bin/cmake -E remove /home/mori/catkin_ws/build/darknet_ros/darknet_ros/CMakeFiles/darknet_ros_lib.dir//darknet/src/./darknet_ros_lib_generated_maxpool_layer_kernels.cu.o /usr/bin/cmake -E remove /home/mori/catkin_ws/build/darknet_ros/darknet_ros/CMakeFiles/darknet_ros_lib.dir//darknet/src/./darknet_ros_lib_generated_activation_kernels.cu.o /usr/bin/cmake -E remove /home/mori/catkin_ws/build/darknet_ros/darknet_ros/CMakeFiles/darknet_ros_lib.dir//darknet/src/./darknet_ros_lib_generated_avgpool_layer_kernels.cu.o -- Removing /home/mori/catkin_ws/build/darknet_ros/darknet_ros/CMakeFiles/darknet_ros_lib.dir/__/darknet/src/./darknet_ros_lib_generated_crop_layer_kernels.cu.o /usr/bin/cmake -E remove /home/mori/catkin_ws/build/darknet_ros/darknet_ros/CMakeFiles/darknet_ros_lib.dir//darknet/src/./darknet_ros_lib_generated_crop_layer_kernels.cu.o -- Generating dependency file: /home/mori/catkin_ws/build/darknet_ros/darknet_ros/CMakeFiles/darknet_ros_lib.dir//darknet/src/darknet_ros_lib_generated_activation_kernels.cu.o.NVCC-depend -- Generating dependency file: /home/mori/catkin_ws/build/darknet_ros/darknet_ros/CMakeFiles/darknet_ros_lib.dir//darknet/src/darknet_ros_lib_generated_maxpool_layer_kernels.cu.o.NVCC-depend -- Generating dependency file: /home/mori/catkin_ws/build/darknet_ros/darknet_ros/CMakeFiles/darknet_ros_lib.dir//darknet/src/darknet_ros_lib_generated_avgpool_layer_kernels.cu.o.NVCC-depend /usr/local/cuda/bin/nvcc -M -DCUDACC /home/mori/catkin_ws/src/darknet_ros/darknet/src/activation_kernels.cu -o /home/mori/catkin_ws/build/darknet_ros/darknet_ros/CMakeFiles/darknet_ros_lib.dir//darknet/src/darknet_ros_lib_generated_activation_kernels.cu.o.NVCC-depend -ccbin /usr/bin/cc -m64 --std c++11 -DROS_BUILD_SHARED_LIBS=1 -DDARKNET_FILE_PATH=\"/home/mori/catkin_ws/src/darknet_ros/darknet\" -DGPU -DROS_PACKAGE_NAME=\"darknet_ros\" -DROSCONSOLE_BACKEND_LOG4CXX -DOPENCV -Ddarknet_ros_lib_EXPORTS -Xcompiler ,\"-fPIC\",\"-g\" -arch=sm_13 -O3 -gencode arch=compute_30,code=sm_30 -gencode arch=compute_35,code=sm_35 -gencode arch=compute_50,code=[sm_50,compute_50] -gencode arch=compute_52,code=[sm_52,compute_52] -gencode arch=compute_61,code=sm_61 -gencode arch=compute_62,code=sm_62 -DNVCC -I/usr/local/cuda/include -I/usr/include -I/opt/ros/kinetic/include/opencv-3.3.1-dev -I/opt/ros/kinetic/include/opencv-3.3.1-dev/opencv -I/home/mori/catkin_ws/src/darknet_ros/darknet/src -I/home/mori/catkin_ws/src/darknet_ros/darknet/include -I/home/mori/catkin_ws/src/darknet_ros/darknet_ros/include -I/home/mori/catkin_ws/devel/include -I/opt/ros/kinetic/include -I/opt/ros/kinetic/share/xmlrpcpp/cmake/../../../include/xmlrpcpp -I/usr/local/cuda/include /usr/local/cuda/bin/nvcc -M -DCUDACC /home/mori/catkin_ws/src/darknet_ros/darknet/src/maxpool_layer_kernels.cu -o /home/mori/catkin_ws/build/darknet_ros/darknet_ros/CMakeFiles/darknet_ros_lib.dir//darknet/src/darknet_ros_lib_generated_maxpool_layer_kernels.cu.o.NVCC-depend -ccbin /usr/bin/cc -m64 --std c++11 -DROS_BUILD_SHARED_LIBS=1 -DDARKNET_FILE_PATH=\"/home/mori/catkin_ws/src/darknet_ros/darknet\" -DGPU -DROS_PACKAGE_NAME=\"darknet_ros\" -DROSCONSOLE_BACKEND_LOG4CXX -DOPENCV -Ddarknet_ros_lib_EXPORTS -Xcompiler ,\"-fPIC\",\"-g\" -arch=sm_13 -O3 -gencode arch=compute_30,code=sm_30 -gencode arch=compute_35,code=sm_35 -gencode arch=compute_50,code=[sm_50,compute_50] -gencode arch=compute_52,code=[sm_52,compute_52] -gencode arch=compute_61,code=sm_61 -gencode arch=compute_62,code=sm_62 -DNVCC -I/usr/local/cuda/include -I/usr/include -I/opt/ros/kinetic/include/opencv-3.3.1-dev -I/opt/ros/kinetic/include/opencv-3.3.1-dev/opencv -I/home/mori/catkin_ws/src/darknet_ros/darknet/src -I/home/mori/catkin_ws/src/darknet_ros/darknet/include -I/home/mori/catkin_ws/src/darknet_ros/darknet_ros/include -I/home/mori/catkin_ws/devel/include -I/opt/ros/kinetic/include -I/opt/ros/kinetic/share/xmlrpcpp/cmake/../../../include/xmlrpcpp -I/usr/local/cuda/include -- Generating dependency file: /home/mori/catkin_ws/build/darknet_ros/darknet_ros/CMakeFiles/darknet_ros_lib.dir//darknet/src/darknet_ros_lib_generated_crop_layer_kernels.cu.o.NVCC-depend /usr/local/cuda/bin/nvcc -M -DCUDACC__ /home/mori/catkin_ws/src/darknet_ros/darknet/src/avgpool_layer_kernels.cu -o /home/mori/catkin_ws/build/darknet_ros/darknet_ros/CMakeFiles/darknet_ros_lib.dir//darknet/src/darknet_ros_lib_generated_avgpool_layer_kernels.cu.o.NVCC-depend -ccbin /usr/bin/cc -m64 --std c++11 -DROS_BUILD_SHARED_LIBS=1 -DDARKNET_FILE_PATH=\"/home/mori/catkin_ws/src/darknet_ros/darknet\" -DGPU -DROS_PACKAGE_NAME=\"darknet_ros\" -DROSCONSOLE_BACKEND_LOG4CXX -DOPENCV -Ddarknet_ros_lib_EXPORTS -Xcompiler ,\"-fPIC\",\"-g\" -arch=sm_13 -O3 -gencode arch=compute_30,code=sm_30 -gencode arch=compute_35,code=sm_35 -gencode arch=compute_50,code=[sm_50,compute_50] -gencode arch=compute_52,code=[sm_52,compute_52] -gencode arch=compute_61,code=sm_61 -gencode arch=compute_62,code=sm_62 -DNVCC -I/usr/local/cuda/include -I/usr/include -I/opt/ros/kinetic/include/opencv-3.3.1-dev -I/opt/ros/kinetic/include/opencv-3.3.1-dev/opencv -I/home/mori/catkin_ws/src/darknet_ros/darknet/src -I/home/mori/catkin_ws/src/darknet_ros/darknet/include -I/home/mori/catkin_ws/src/darknet_ros/darknet_ros/include -I/home/mori/catkin_ws/devel/include -I/opt/ros/kinetic/include -I/opt/ros/kinetic/share/xmlrpcpp/cmake/../../../include/xmlrpcpp -I/usr/local/cuda/include nvcc fatal : Value 'sm_13' is not defined for option 'gpu-architecture' CMake Error at darknet_ros_lib_generated_maxpool_layer_kernels.cu.o.cmake:207 (message): Error generating /home/mori/catkin_ws/build/darknet_ros/darknet_ros/CMakeFiles/darknet_ros_lib.dir/__/darknet/src/./darknet_ros_lib_generated_maxpool_layer_kernels.cu.o
nvcc fatal : Value 'sm_13' is not defined for option 'gpu-architecture' CMake Error at darknet_ros_lib_generated_activation_kernels.cu.o.cmake:207 (message): Error generating /home/mori/catkin_ws/build/darknet_ros/darknet_ros/CMakeFiles/darknet_ros_lib.dir/__/darknet/src/./darknet_ros_lib_generated_activation_kernels.cu.o
nvcc fatal : Value 'sm_13' is not defined for option 'gpu-architecture' darknet_ros/darknet_ros/CMakeFiles/darknet_ros_lib.dir/build.make:1662: ターゲット 'darknet_ros/darknet_ros/CMakeFiles/darknet_ros_lib.dir//darknet/src/darknet_ros_lib_generated_maxpool_layer_kernels.cu.o' のレシピで失敗しました make[2]: *** [darknet_ros/darknet_ros/CMakeFiles/darknet_ros_lib.dir//darknet/src/darknet_ros_lib_generated_maxpool_layer_kernels.cu.o] エラー 1 make[2]: 未完了のジョブを待っています.... darknet_ros/darknet_ros/CMakeFiles/darknet_ros_lib.dir/build.make:205: ターゲット 'darknet_ros/darknet_ros/CMakeFiles/darknet_ros_lib.dir/__/darknet/src/darknet_ros_lib_generated_activation_kernels.cu.o' のレシピで失敗しました make[2]: [darknet_ros/darknet_ros/CMakeFiles/darknet_ros_lib.dir//darknet/src/darknet_ros_lib_generated_activation_kernels.cu.o] エラー 1 CMake Error at darknet_ros_lib_generated_avgpool_layer_kernels.cu.o.cmake:207 (message): Error generating /home/mori/catkin_ws/build/darknet_ros/darknet_ros/CMakeFiles/darknet_ros_lib.dir//darknet/src/./darknet_ros_lib_generated_avgpool_layer_kernels.cu.o
darknet_ros/darknet_ros/CMakeFiles/darknet_ros_lib.dir/build.make:522: ターゲット 'darknet_ros/darknet_ros/CMakeFiles/darknet_ros_lib.dir//darknet/src/darknet_ros_lib_generated_avgpool_layer_kernels.cu.o' のレシピで失敗しました make[2]: *** [darknet_ros/darknet_ros/CMakeFiles/darknet_ros_lib.dir//darknet/src/darknet_ros_lib_generated_avgpool_layer_kernels.cu.o] エラー 1 /usr/local/cuda/bin/nvcc -M -DCUDACC /home/mori/catkin_ws/src/darknet_ros/darknet/src/crop_layer_kernels.cu -o /home/mori/catkin_ws/build/darknet_ros/darknet_ros/CMakeFiles/darknet_ros_lib.dir//darknet/src/darknet_ros_lib_generated_crop_layer_kernels.cu.o.NVCC-depend -ccbin /usr/bin/cc -m64 --std c++11 -DROS_BUILD_SHARED_LIBS=1 -DDARKNET_FILE_PATH=\"/home/mori/catkin_ws/src/darknet_ros/darknet\" -DGPU -DROS_PACKAGE_NAME=\"darknet_ros\" -DROSCONSOLE_BACKEND_LOG4CXX -DOPENCV -Ddarknet_ros_lib_EXPORTS -Xcompiler ,\"-fPIC\",\"-g\" -arch=sm_13 -O3 -gencode arch=compute_30,code=sm_30 -gencode arch=compute_35,code=sm_35 -gencode arch=compute_50,code=[sm_50,compute_50] -gencode arch=compute_52,code=[sm_52,compute_52] -gencode arch=compute_61,code=sm_61 -gencode arch=compute_62,code=sm_62 -DNVCC -I/usr/local/cuda/include -I/usr/include -I/opt/ros/kinetic/include/opencv-3.3.1-dev -I/opt/ros/kinetic/include/opencv-3.3.1-dev/opencv -I/home/mori/catkin_ws/src/darknet_ros/darknet/src -I/home/morimori /catkin_ws/src/darknet_ros/darknet/include -I/home/mori/catkin_ws/src/darknet_ros/darknet_ros/include -I/home/mori/catkin_ws/devel/include -I/opt/ros/kinetic/include -I/opt/ros/kinetic/share/xmlrpcpp/cmake/../../../include/xmlrpcpp -I/usr/local/cuda/include nvcc fatal : Value 'sm_13' is not defined for option 'gpu-architecture' CMake Error at darknet_ros_lib_generated_crop_layer_kernels.cu.o.cmake:207 (message): Error generating /home/mori/catkin_ws/build/darknet_ros/darknet_ros/CMakeFiles/darknet_ros_lib.dir//darknet/src/./darknet_ros_lib_generated_crop_layer_kernels.cu.o
darknet_ros/darknet_ros/CMakeFiles/darknet_ros_lib.dir/build.make:364: ターゲット 'darknet_ros/darknet_ros/CMakeFiles/darknet_ros_lib.dir//darknet/src/darknet_ros_lib_generated_crop_layer_kernels.cu.o' のレシピで失敗しました make[2]: *** [darknet_ros/darknet_ros/CMakeFiles/darknet_ros_lib.dir//darknet/src/darknet_ros_lib_generated_crop_layer_kernels.cu.o] エラー 1 CMakeFiles/Makefile2:2642: ターゲット 'darknet_ros/darknet_ros/CMakeFiles/darknet_ros_lib.dir/all' のレシピで失敗しました make[1]: [darknet_ros/darknet_ros/CMakeFiles/darknet_ros_lib.dir/all] エラー 2 Makefile:138: ターゲット 'all' のレシピで失敗しました make: [all] エラー 2 Invoking "make -j4 -l4" failed
P.S.
I used Lenovo ideapaad Y700 NVIDIA Geforce 960M and installed version of cuda is the following. nvcc -V nvcc: NVIDIA (R) Cuda compiler driver Copyright (c) 2005-2017 NVIDIA Corporation Built on Fri_Nov__3_21:07:56_CDT_2017 Cuda compilation tools, release 9.1, V9.1.85