Monday, July 8, 2013

UPDATE: CUDA 5.5 + OpenCV 2.4.9 + Visual Studio 2012

Successfully compiled!!

After several attempts to compile the latest unstable release of OPENCV from git source, it finally works, but you need to do a couple of tweeks to get it to work.

Fix #1: As mentioned by   Vladislav Vinogradov on http://code.opencv.org/issues/3135
setting CUDA_ATTACH_VS_BUILD_RULE_TO_CUDA_FILE  cmake variable to off gets rid of those cuda compile related errors.

Fix #2:
"OPENCV_ROOT"\modules\gpuarithm\test\test_element_operations.cpp

You need to add #include <functional> as without it you will get compile errors like this:
error: std::greater is an undeclared variable.

Note: Following is the CMAKE param check list I used to successfully compile

Ungrouped Entries

BUILD options: Uncheck BUILD_DOCS and BUILD_EXAMPLES

CUDA OPTIONS: Uncheck CUDA_ATTACH_VS_BUILD_RULE_TO_CUDA_FILE and take note of other red boxes


WITH OPTIONS: Add  WITH_CUBLAS, WITH_OPENGL, WITH_TBB

In the end you should have only one error for debug mode and none under release mode compile.
As usual run INSTALL under CMakeTargets to put libs and include files in one convenient area. (Make sure you compile both debug and release before running this)


Friday, June 14, 2013

Hot: CUDA 5.5 and Nsight works with Visual Studio 2012


So for developers who were waiting for CUDA to support Visual Studio 2012 the wait is finally over.

 

This week I downloaded the release candidate version of CUDA 5.5 SDK which comes bundled with the SDK, NSIGHT 3.1 and updated drivers. To my surprise at the end of installation NSIGHT 3.1 said that it installed into Visual Studio 2012.

To my curiosity I opened up a CUDA sample and after the project solution update to V110 and then building and Running without debugging the sample solution and everything succeeded without a glitch!

Here is a screenshot of Sobel Filter compiled and run in Visual Studio 2012.

 

Sobel Filter using Visual Studio 2012 and CUDA 5.5 SDK
Cheers!!

Thursday, June 13, 2013

More Tutorials and walk-thru's coming soon

Over the next few weeks I'll be writing up tutorials covering image processing algorithms: Gaussian Mixture Models, Summed Area Tables, etc.. Follow my twitter for more updates or suggestions.

Monday, May 27, 2013

Opencv 2.4.9 + CUDA 5 on visual studio 2012

Want to build opencv + cuda 5 on visual studio 2012. please look in the tutorial section for details.