After some tweaking I was able to get most of the matlab example compile on a Mac; but now I have run into a problem. Namely I get the following error:
[indent]./nvmex -f nvopts.sh Szeta.cu -I/usr/local/cuda/include -L/usr/local/cuda/lib -lcufft -lcudart -Wl,-rpath,/usr/local/cuda/libversion
mex: /Applications/MATLAB_R2010a.app/extern/src/mexversion.c not a normal file or does not exist.
make: *** [Szeta.mexmaci] Error 1
The file indeed does not exist.
This does not actually look Mac-specific – I suspect would be the same for Linux with any matlab version later than R2008b as they no longer include this particular file (and the standard mex script from Mathworks no longer calls it).
Any way to work around this?