Hello there,

for a couple of days I am trying to compile .cu files in Matlab R2011a executing the nvmex command but unfortunately with no success. I followed all the available tutorials that I managed to find online (eg Matlab_CUDA_1.1, Tutorials & How To’s With CUDA, Matlab, & Visual Studio etc) but I end up with the following error:

nvmex -f nvmexopts.bat Szeta.cu -IC:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v4.0\include -LC:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v4.0\lib -lcufft -lcudart

C:\PROGRA~1\MATLAB\R2011A\BIN\NVMEX.PL: Error: ‘Files\NVIDIA’ not found.

??? Error using ==> nvmex at 206

Unable to complete successfully.

I updated the files nvmex.pl and nvmexopts.bat that I found online for Matlab R2008a but I still get the same error. I assume that there is something wrong with these 2 files and the version of Matlab that I use.

This is very crucial for my project and although I managed to use mex command successfully for C files in Matlab, I cannot do the same for nvmex and .cu files.

I would really appreciate any suggestion or solution!

Thanks in advance,

Christos