CUDA

On Mac:

  • Snow Leopard 10.6.3 or higher required
  • Install driver and sdk: download

Sample code installs to:

  • /Developer/GPU Computing/C

In .profile:

  • export LD_LIBRARY_PATH=/usr/local/cuda/lib
  • export PATH=/usr/local/cuda/bin:$PATH

File endings:

  • .cu -- CUDA source
  • .cuh -- CUDA header
  • .cubin -- old-style compiled CUDA
  • .ptx -- new-style compiled CUDA

To run as a program:

  • nvcc foo.cu; ./a.out

To compile for Factor to load:

  • nvcc --ptx foo.cu

Turn off name mangling:

  • extern "C" global void fooBar();

This revision created on Tue, 13 Apr 2010 08:38:35 by erg