Got a problem in the installation of Cuda Matlab Plug-in. Help please.....

Hi,

I have successfully installed CUDA drive for my Geforce 9800 GT graphics card, also I am pretty sure that there shouldn’t be any problem with the installation of the CUDA SDK and toolkit. But when I got down to install the CUDA Matlab Plug-in, I got the following messages and the error.

unix(‘make’);
/usr/local/matlab/bin/mex CFLAGS=’-fPIC -D_GNU_SOURCE -pthread -fexceptions’ COPTIMFLAGS=’-O3 -funroll-loops -msse2’ fft2_cuda.c
-I/usr/local/cuda/include -L/usr/local/cuda/lib -lcudart -lcufft -Wl,-rpath,/usr/local/cuda/lib
/usr/local/matlab/bin/mex CFLAGS=’-fPIC -D_GNU_SOURCE -pthread -fexceptions’ COPTIMFLAGS=’-O3 -funroll-loops -msse2’ fft2_cuda_sp_dp.c
-I/usr/local/cuda/include -L/usr/local/cuda/lib -lcudart -lcufft -Wl,-rpath,/usr/local/cuda/lib
/usr/local/matlab/bin/mex CFLAGS=’-fPIC -D_GNU_SOURCE -pthread -fexceptions’ COPTIMFLAGS=’-O3 -funroll-loops -msse2’ ifft2_cuda.c
-I/usr/local/cuda/include -L/usr/local/cuda/lib -lcudart -lcufft -Wl,-rpath,/usr/local/cuda/lib
./nvmex -f nvopts.sh Szeta.cu -I/usr/local/cuda/include -L/usr/local/cuda/lib -lcudart -lcufft -Wl,-rpath,/usr/local/cuda/lib
.: 1412: nvopts.sh: not found
make: *** [Szeta.mexglx] Error 2

Could someone tell me what I should do about this? Why Matlab can’t find the file of nvopts.sh? I am working right in the directory where it resides.

Thanks so much!

Some more information might be useful: OS: Ubuntu 8.10, Matlab Ver. 7.8

I had the same problem. Changing the Makefile to explicitly specify the full path to the nvopts.sh file worked for me.

Ex:

$(NVMEX) -f /home/$(USER)/Desktop/Matlab_Cuda_1.1/nvopts.sh $< $(INCLUDEDIR) $(INCLUDELIB)