stiefels.net Just another WordPress weblog

11Mar/090

Compiling CuPP on Mac OS X

[CuPP](http://www.plm.eecs.uni-kassel.de/CuPP/) is a C++ framework to easily integrate [CUDA](http://www.nvidia.com/object/cuda_home.html) into existing C++ applications.
Unfortunately, CuPP doesn't compile on Mac OS X right out of the box. [Here is a patch](http://www.stiefels.net/~sst/files/cupp-macosx.patch) which modifies the CMakeLists.txt files of the project so that it can be compiled on OS X.

CuPP uses [cmake](http://www.cmake.org) as a build system which also has to installed on Mac OS X. The easiest way is to use [MacPorts](http://www.macports.org) to install cmake:

$ sudo port install cmake

CuPP also uses the boost libraries which have to available on your system. Again, MacPorts is an easy way to get boost:

$ sudo port install boost

Then download CuPP the [website](http://www.plm.eecs.uni-kassel.de/CuPP/), extract it and apply this patch to it:

$ cd cupp
$ patch -p1 < ~/cupp-macosx.patch

After that you can compile CuPP as explained in the BUILDING document:

$ cmake .
$ make

That should do it.
Please note that this patch expects the boost libraries to be installed in ***/opt/local/include/*** directory (if installed via MacPorts this should be fine).

Comments (0) Trackbacks (0)

No comments yet.


Leave a comment


No trackbacks yet.