Ask Your Question

Using OpenCV 2.4.2 with CUDA Toolkit 5.0

asked 2012-09-30 09:45:01 -0500

giu gravatar image

Hi, I'm writing an application with both CUDA Runtime API calls and OpenCV GPU module function calls. I need to use the new CUDA Toolkit 5.0, but OpenCV 2.4.2 is available on line in the compiled form for Windows only for the CUDA Toolkit 4.2. If I download the source code of OpenCV 2.4.2 and compile it with the CUDA Toolkit 5.0 installed, is there any possibilty that it will actually work? Or is it better to install both the Toolkit 4.2 together with the 5.0 to allow OpenCV to work? I read that when installing the CUDA 5.0 the previous version should be uninstalled... Thank you for your attention!

edit retag flag offensive close merge delete

1 answer

Sort by » oldest newest most voted

answered 2012-09-30 11:42:03 -0500

Vladislav Vinogradov gravatar image

Yes you can compile OpenCV with CUDA 5.0. Just check in CMake GUI that it detect right version of CUDA toolkit.

edit flag offensive delete link more


Thank you very much!! I'm going to try! ..Can you tell me where can I find the source code of OpenCV (it seems an easy thing but I can't really find it) and can you suggest a 'tutorial' on how to build the library in Windows? I've been looking for a clear explanation about it all day long, even among the answers on this blog, but I could not find it..

giu gravatar imagegiu ( 2012-09-30 14:28:57 -0500 )edit

OpencCV package from already contains source code. Or you can download source from git repository : git:// . Here is the tutorial "How to build OpenCV from sources under Windows" : . This tutorial contains old links to svn repository, use new git repository instead.

Vladislav Vinogradov gravatar imageVladislav Vinogradov ( 2012-10-01 01:44:07 -0500 )edit

Thank you! I installed with success OpenCV following that tutorial and the application executes correctly. I still have a problem using the NVIDIA Visual Profiler to analyze this code, but I just posted another question about it.

giu gravatar imagegiu ( 2012-10-02 16:10:14 -0500 )edit

Question Tools


Asked: 2012-09-30 09:45:01 -0500

Seen: 1,386 times

Last updated: Sep 30 '12