Ask Your Question
0

Unable to build OpenCV (with CUDA) error

asked 2016-10-14 02:33:05 -0600

Ray_ban gravatar image

updated 2016-10-14 03:27:05 -0600

I am unable to build openCV v3.1 with Cuda. I followed the instruction as given in the link http://docs.opencv.org/master/d3/d52/...

In CMAKE I just select all flags with CUDA besides CUDA_BUILD_EMULATION and WITH CUDA and leave the rest as it is Cmake generates the file and with Visual 2013 x64 I try building it in Debug first but then the build never completes.

10>
10>
10>C:\Users\rahul\Desktop\opencv\opencv\modules\core\include\opencv2/core/base.hpp(365): warning : function declared with "noreturn" does return

After some time his is the warning I continuously get...and continues indefinitely...getting the same warning

Any solutions to this problem??

ps - I tried using the for loop in base.hpp line 365 still no use

Compiler Ms Visual studio 2013 x64, Os is windows 10 and with_cuda is ON

edit retag flag offensive close merge delete

Comments

compiler ? os ? (since there are some ifdefs)

confused: WITH_CUDA=ON or OFF, now ?

berak gravatar imageberak ( 2016-10-14 03:00:28 -0600 )edit
1

I am using Visual studio 2013 compiler (ms compiler) Os is win 10 and with_cuda is ON

Ray_ban gravatar imageRay_ban ( 2016-10-14 03:24:58 -0600 )edit
1
LBerger gravatar imageLBerger ( 2016-10-14 03:35:20 -0600 )edit

I see.....well let me try for a day.....then I will report back

Ray_ban gravatar imageRay_ban ( 2016-10-14 03:38:55 -0600 )edit

1 answer

Sort by ยป oldest newest most voted
1

answered 2016-10-16 02:53:48 -0600

Ray_ban gravatar image

It worked!!!

IT took 4.5 Hrs on my i7-4700HQ to compile the whole thing. So the answer was extreme patience.....

edit flag offensive delete link more

Comments

you can decrease time compilation using CUDA_ARCH_BIN default is 2.0 3.0 3.5... Choose only your graphic card architecture if it is possible

LBerger gravatar imageLBerger ( 2016-10-16 03:32:25 -0600 )edit

Question Tools

1 follower

Stats

Asked: 2016-10-14 02:33:05 -0600

Seen: 825 times

Last updated: Oct 16 '16