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


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.

/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 -I/usr/local/cuda/include -L/usr/local/cuda/lib -lcudart -lcufft -Wl,-rpath,/usr/local/cuda/lib
.: 1412: 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 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 file worked for me.


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