opencv newest 2.4.11 cannot compile with CUDA 7.0 (Bug #4249)
Description
I update CUDA to version 7.0 and OpenCV 2.4.11 latest cannot compile. However, OpenCV 3.0 can work on it.
History
Updated by Ilya Lavrenov almost 10 years ago
Hi An,
Please, provide a full build log. We can not do anything without it.
- Status changed from New to Incomplete
Updated by Ilya Lavrenov almost 10 years ago
- Assignee set to Ilya Lavrenov
- Category set to build/install
- Target version set to 2.4.11
Updated by An Tran almost 10 years ago
Sorry, I forgot to attach.
When I execute a cmake: cmake -D CMAKE_BUILD_TYPE=DEBUG ..
Everything is fine with the following output.
-- Use C=: NO
-- Use Cuda: YES (ver 7.0)
-- Use OpenCL: YES
--
-- NVIDIA CUDA
-- Use CUFFT: YES
-- Use CUBLAS: NO
-- USE NVCUVID: NO
-- NVIDIA GPU arch: 11 12 13 20 21 30 35
-- NVIDIA PTX archs: 30
-- Use fast math: NO
When I make opencv, it generates the error:
[ 35%] Building NVCC (Device) object modules/core/CMakeFiles/cuda_compile.dir/__/dynamicuda/src/cuda/./cuda_compile_generated_matrix_operations.cu.o
nvcc fatal : Unsupported gpu architecture 'compute_11'
CMake Error at cuda_compile_generated_matrix_operations.cu.o.cmake:208 (message):
Error generating
/home/beahacker/Downloads/opencv-2.4.x/opencv/build/modules/core/CMakeFiles/cuda_compile.dir/__/dynamicuda/src/cuda/./cuda_compile_generated_matrix_operations.cu.o
modules/core/CMakeFiles/opencv_core.dir/build.make:55: recipe for target 'modules/core/CMakeFiles/cuda_compile.dir/__/dynamicuda/src/cuda/./cuda_compile_generated_matrix_operations.cu.o' failed
make2: * [modules/core/CMakeFiles/cuda_compile.dir/__/dynamicuda/src/cuda/./cuda_compile_generated_matrix_operations.cu.o] Error 1
CMakeFiles/Makefile2:942: recipe for target 'modules/core/CMakeFiles/opencv_core.dir/all' failed
make1: [modules/core/CMakeFiles/opencv_core.dir/all] Error 2
make1: Waiting for unfinished jobs....
[ 35%] Built target pch_Generate_opencv_videostab
Makefile:143: recipe for target 'all' failed
make: * [all] Error 2
I fixed it already. I am going to do a PR, but not sure about the procedure. I will let you know when I finish it.
Best regards,
@An
Updated by An Tran almost 10 years ago
Please, look at my PR 3886 https://github.com/Itseez/opencv/pull/3886.
Updated by An Tran almost 10 years ago
- Status changed from Incomplete to Done
- % Done changed from 0 to 100