Hi Julien,

FYI, it was in fact a bug in opencv:

https://github.com/Itseez/opencv/commit/ebd7d08408205aebb478af1e6239f9c2e4dc2fdd

To solve this, cuda and opencl is now deactivated in OTB Superbuild:

https://bugs.orfeo-toolbox.org/view.php?id=1084

The patch is available in branch release-5.0 and will be also available in the next OTB release (branch develop).

Best regards,

Manuel

Le 13/10/2015 11:27, Julien Radoux a écrit :
I am trying to compile OTB on ubuntu with OpenCV ON (OTB 5, superbuild).
It works when I disable OpenCV, but I have a CUDA error when I enable it.

[ 76%] Performing build step for 'OPENCV'
[ 59%] Built target IlmImf
[ 60%] Built target opencv_core_pch_dephelp
[ 62%] Built target pch_Generate_opencv_core
[ 63%] 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:206
(message):
   Error generating

/home/OASIS/julien/ubuntu/OTBbin/OPENCV/build/modules/core/CMakeFiles/cuda_compile.dir/__/dynamicuda/src/cuda/./cuda_compile_generated_matrix_operations.cu.o


make[5]: ***
[modules/core/CMakeFiles/cuda_compile.dir/__/dynamicuda/src/cuda/./cuda_compile_generated_matrix_operations.cu.o]
Error 1
make[4]: *** [modules/core/CMakeFiles/opencv_core.dir/all] Error 2
make[3]: *** [all] Error 2
make[2]: *** [OPENCV/src/OPENCV-stamp/OPENCV-build] Error 2
make[1]: *** [CMakeFiles/OPENCV.dir/all] Error 2


Any idea where this could come from ?

Thank you

Julien


--
--
Check the OTB FAQ at
http://www.orfeo-toolbox.org/FAQ.html

You received this message because you are subscribed to the Google
Groups "otb-users" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/otb-users?hl=en
---
You received this message because you are subscribed to the Google
Groups "otb-users" group.
To unsubscribe from this group and stop receiving emails from it, send
an email to [email protected]
<mailto:[email protected]>.
For more options, visit https://groups.google.com/d/optout.

--
Manuel GRIZONNET

--
--
Check the OTB FAQ at
http://www.orfeo-toolbox.org/FAQ.html

You received this message because you are subscribed to the Google
Groups "otb-users" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/otb-users?hl=en
--- You received this message because you are subscribed to the Google Groups "otb-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to