Discussion:
[otb-users] Compilation error with CUDA
Julien Radoux
2015-10-13 09:27:09 UTC
Permalink
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 otb-***@googlegroups.com
To unsubscribe from this group, send email to
otb-users+***@googlegroups.com
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 otb-users+***@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Grizonnet Manuel
2015-10-13 10:28:16 UTC
Permalink
Hi Julien,

this is bug IMO


By default optional third party components seem to be compiled in opencv. Some of them are deactivate in OTB Superbuild but obviously we’re missing some of them.

I’ve filled a bug (with complementary information) related to this specific point:

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

Thanks.

Manuel

De : otb-***@googlegroups.com [mailto:otb-***@googlegroups.com] De la part de Julien Radoux
Envoyé : mardi 13 octobre 2015 11:27
À : otb-users
Objet : [otb-users] Compilation error with CUDA

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 otb-***@googlegroups.com<mailto:otb-***@googlegroups.com>
To unsubscribe from this group, send email to
otb-users+***@googlegroups.com<mailto:otb-users+***@googlegroups.com>
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 otb-users+***@googlegroups.com<mailto:otb-users+***@googlegroups.com>.
For more options, visit https://groups.google.com/d/optout.
--
--
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 otb-***@googlegroups.com
To unsubscribe from this group, send email to
otb-users+***@googlegroups.com
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 otb-users+***@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Manuel Grizonnet
2015-10-29 18:04:10 UTC
Permalink
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
Post by Julien Radoux
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
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 unsubscribe from this group, send email to
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
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 otb-***@googlegroups.com
To unsubscribe from this group, send email to
otb-users+***@googlegroups.com
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 otb-users+***@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Julien Radoux
2015-10-30 10:49:07 UTC
Permalink
Hi Manuel,

Thank you for your help. deactivating CUDA and OpenCL solved my problem. I
hope that opencv will solve their CUDA issue so that I can use my graphic
card, but for now I am quite happy that it compiled !

Best regards,

Julien
Post by Julien Radoux
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
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 otb-***@googlegroups.com
To unsubscribe from this group, send email to
otb-users+***@googlegroups.com
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 otb-users+***@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Manuel Grizonnet
2015-10-30 10:58:07 UTC
Permalink
opencv has solved it in branch 2.4.12 so you'll be able to reactivate it
if you want in the future. Anyway, happy that your OTB is compiling again.

Manuel
Post by Julien Radoux
Hi Manuel,
Thank you for your help. deactivating CUDA and OpenCL solved my problem.
I hope that opencv will solve their CUDA issue so that I can use my
graphic card, but for now I am quite happy that it compiled !
Best regards,
Julien
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
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 unsubscribe from this group, send email to
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
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 otb-***@googlegroups.com
To unsubscribe from this group, send email to
otb-users+***@googlegroups.com
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 otb-users+***@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Loading...