Introduction to Parallel Programming class code and solutions
These instructions are for OS X 10.9 "Mavericks".
-
Step 1. Build and install OpenCV. The best way to do this is with Homebrew. However, you must slightly alter the Homebrew OpenCV installation; you must build it with libstdc++ (instead of the default libc++) so that it will properly link against the nVidia CUDA dev kit. This entry in the Udacity discussion forums describes exactly how to build a compatible OpenCV.
-
Step 2. You can now create 10.9-compatible makefiles, which will allow you to build and run your homework on your own machine:
mkdir build
cd build
cmake ..
make
The code is tested on opencv 2 and cuda 11, for other versions it may require modification to the code.
Set up OpenCV paths in Visual Studio following this turtorial.
The source code might have linker errors, mostly becasue of .cpp file includes (see this SO question), troubleshooting can refer to Linker Tools Error LNK2005.
See this post to turn on dynamic parallelism compiliation for Visual Studio.
Looks weird but it's the expected results given buy the CPU version.
no image output