Matlab 2008b, Cuda 2.2, problems with nvmex

When compiling the example matlab-cuda files (from the nvidia website: http://developer.download.nvidia.com/compu…_CUDA-1.1a.zip) there is something going wrong using nvmex.

When typing:

nvmex -f nvmexopts.bat Szeta.cu -IC:\cuda\include -LC:\cuda\lib -lcufft -lcudart

matlab prints the following:

Szeta.cu 

tmpxft_00000e30_00000000-3_Szeta.cudafe1.gpu 

tmpxft_00000e30_00000000-8_Szeta.cudafe2.gpu 

tmpxft_00000e30_00000000-3_Szeta.cudafe1.cpp 

'mt' is not recognized as an internal or external command, 

operable program or batch file.

An Szeta.mexw32 is created, but when called gives the error:

??? Invalid MEX-file 'C:\Documents and Settings\s030301\My

Documents\MATLAB\Matlab_CUDA_1.1\Szeta.mexw32': The specified module could

not be found.

I’ve searched these forums, but not found similar problems. Any ideas?

Compiling the fft functions using matlab’s own mex does work, and the resulting cuda_fft functions do work.

I have already downloaded the nvmexopts.bat and nvmex.pl files for use with Matlab 2008b, but I have Visual Studio 9.0 installed. (as opposed to 8.0 as mentioned in nvmexopts.bat)