Ask Your Question
0

GPU and Cuda

asked 2014-04-17 07:13:43 -0500

lasandcris gravatar image

Hi,

I'm trying to use gpu functions in my code but it seems something has gone wrong. I followed all the instructions out there that's related to setting up the gpu. Cmake recognized my cuda graphics card and I compiled all libs and bins including the new gpu dll which came to about 1.5gb. The strange thing is that when I use the getCudaEnabledDeviceCount() it returns a -1 value, which I'm not sure what it stands for. But I guess its not right. And of course when I use any other gpu related function it crashes the program. I'm using Visual Studio 2005, OpenCV 2.45, on Windows XP x64.

Does anyone know if there is a compatibility issue between Visual Studio 2005 and Cuda?

edit retag flag offensive close merge delete

Comments

Pleas stick to a single spot for asking your question. Either close down this question and try the suggestions I gave in mine, or remove your remark and let me know so I can copy the solution beforehand!

StevenPuttemans gravatar imageStevenPuttemans ( 2014-04-17 08:11:19 -0500 )edit

1 answer

Sort by ยป oldest newest most voted
1

answered 2014-04-17 08:18:30 -0500

Looking at the sourcecode I found out

 if (error == cudaErrorInsufficientDriver) { return -1; }

Which means your CUDA version is not high enough for the OpenCV version you want to build! Update your CUDA runtime libraries! AFAIK, 2.4.5 requires CUDA 4.1!

edit flag offensive delete link more

Comments

1

Thanks, I'm using 4.2. but I think it might be a graphics driver issue. I'm going to try to update. Its might effecting the runtime.

lasandcris gravatar imagelasandcris ( 2014-04-17 11:35:24 -0500 )edit

It is indeed a driver mistake, it clearly shows from the error. Try updating or reverting to 4.1!

StevenPuttemans gravatar imageStevenPuttemans ( 2014-04-18 02:01:36 -0500 )edit

Question Tools

Stats

Asked: 2014-04-17 07:13:43 -0500

Seen: 191 times

Last updated: Apr 17 '14