Archive for March 23rd, 2009

Using the NVCC compiler with CUDA.

Monday, March 23rd, 2009

Most of my personal projects now use Bazaar for source control and CMake as a build system. Recently I’ve been doing some CUDA stuff and had to add the support to CMake for nVidia’s CUDA compiler, NVCC.

In case anyone is interested, a simple tarball providing the CMake magic and an example of it’s use is available from my site.

Health warning: There is a big YMMV on this. This has only been tested on the machines here in the lab which are basically Ubuntu + CUDA 2.1. Patches adding support for other distros/OSs (e.g. Windows) welcome.