'sm_13' is not defined for option 'gpu-architecture'
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 -D__CUDACC__ /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 -D__CUDACC__ /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 ...
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
If the
darknet_ros
you're referring to is darknet_ros, then I'd suggest posting this to leggedrobotics/darknet_ros/issues.Thank you for your advice, I posted my issue to the URL that you posted for me.
https://github.com/leggedrobotics/dar...