Ask Your Question
0

Do the precompiled downloads include CUDA?

asked 2013-06-30 01:13:06 -0500

pistorinoj gravatar image

Title says it all.

I downloaded the precompiled OpenCV 2.4.5 for Windows and I am using VS2010 C++ with an NVIDIA GeForce 610M. My project compiles fine and CUDA 5.0 appears in the Project Configurations.

All the non-CUDA aspects of OpenCV appear to be working fine. However, getCudaEnabledDeviceCount always returns zero and if I actually try and load a GpuMat with a Mat, I crash.

I see several discussions about settings to compile OpenCV with CUDA. Before I go down that route, I wonder if anyone knows if CUDA support is already compiled in the downloads or if there is something else I am supposed to be setting?

Thanks for any help.

edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted
1

answered 2013-06-30 05:56:12 -0500

Vladislav Vinogradov gravatar image

No. Precompiled OpenCV 2.4.5 bineries were built without CUDA support. If you want to use CUDA features you have to build OpenCV from sources.

edit flag offensive delete link more

Comments

1

Thanks. That adds another step to getting something working so I suggest that the dev team consider adding an option to download precompiled binaries with CUDA support. It might speed up adoption. Thanks again.

pistorinoj gravatar imagepistorinoj ( 2013-06-30 11:34:36 -0500 )edit

Let me edit my earlier response, I re-built the downloads with CMake and WITH_CUDA=ON (which took more than 7 hours on my Windows 7, i3 machine). Now, getCudaEnabledDeviceCount is returning a -1. Any ideas? Thanks

pistorinoj gravatar imagepistorinoj ( 2013-07-01 00:28:58 -0500 )edit

This indicates that the installed NVIDIA CUDA driver is older than the CUDA runtime library. Try to install latest driver.

Vladislav Vinogradov gravatar imageVladislav Vinogradov ( 2013-07-01 01:00:57 -0500 )edit
Login/Signup to Answer

Question Tools

Stats

Asked: 2013-06-30 01:13:06 -0500

Seen: 241 times

Last updated: Jun 30 '13