I installed CUDA 2.2 on my macbook pro. Based on the QuickStart guide, “deviceQuery”, “bandwidthTest”, and “particles” are working fine. Then, I downloaded MATLAB plug-in from the website ( http://developer.nvidia.com/object/matlab_cuda.html ) and it did not work well.
Specifically, when I ran unix(‘make’), following error appeared.
./nvmex -f nvopts.sh Szeta.cu -I/usr/local/cuda/include -L/usr/local/cuda/lib -lcufft -Wl,-rpath,/usr/local/cuda/lib
./nvmex: line 931: nvcc: command not found
mex: compile of ‘Szeta.cu’ failed.
I tried adding -lcuda and -lcudart as well, but it didn’t work. How can I solve this problem?
p.s. I added path properly, and ‘nvcc -V’ in a terminal also worked.